instanceServices.add(instanceService);
return null;
}
});
EasyMock.expect(mockCommand.execute(null)).andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
// The Instances Service should be initialized at this point.
// One way to find this out is by reading out the port number
InstanceServiceImpl instanceService = instanceServices.get(0);
Field sshField = InstanceServiceImpl.class.getDeclaredField("defaultSshPortStart");