EasyMock.verify(inst);
}
public void testDestroyInstance() throws Exception {
Instance inst = EasyMock.createMock(Instance.class);
inst.destroy();
EasyMock.expectLastCall();
EasyMock.replay(inst);
AdminService as = EasyMock.createMock(AdminService.class);
EasyMock.expect(as.getInstance("test instance")).andReturn(inst);