EasyMock.verify(inst);
}
public void testRmiServerChangePort() throws Exception {
Instance inst = EasyMock.createMock(Instance.class);
inst.changeRmiServerPort(44444);
EasyMock.expectLastCall();
EasyMock.replay(inst);
InstanceService instanceService = EasyMock.createMock(InstanceService.class);
EasyMock.expect(instanceService.getInstance("test instance")).andReturn(inst);