You're trying to mock two things at the same time. Think of Class.forName("FileTransport").newInstance() as:
Class fileTransportClass = Class.forName("FileTransport");
fileTransportClass.newInstance();
So what are you trying to mock, Class.forName(..) or newInstance()? Also Class is a system class so you need to use
this approach to mock static methods in system classes. But I'm not sure why you want to mock Class.forName(..) or newInstance() in the first place, it feels wrong to me.
/Johan