@Test
public void test_unregisterOnStop() {
try {
String uri1 = createCorbanameURI("TempService1");
String uri2 = createCorbanameURI("TempService2");
JEECorbaHost innerHost = new JEECorbaHost();
innerHost.start();
TestInterfaceServant servant = new TestInterfaceServant();
innerHost.registerServant(uri1, servant);
innerHost.registerServant(uri2, servant);
innerHost.stop();
try {
innerHost.lookup(uri1);
fail();
} catch (CorbaHostException e) {
assertEquals(CorbaHostException.NO_SUCH_OBJECT, e.getMessage());
}
try {
innerHost.lookup(uri2);
fail();
} catch (CorbaHostException e) {
assertEquals(CorbaHostException.NO_SUCH_OBJECT, e.getMessage());
}
} catch (Exception e) {