BasicServerImpl servant = new BasicServerImpl();
rootPOA.activate_object(servant);
BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));
assertEquals(42, server.bounce_long(42));
rootPOA.deactivate_object(rootPOA.servant_to_id(servant));
assertFileExists (getLogFilename("jacorb.log"));
try
{
server.bounce_boolean(true);
}
catch (OBJECT_NOT_EXIST e)
{
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);
e.printStackTrace(printWriter);
assertTrue ( stringWriter.toString().contains("servant_preinvoke"));
}
boolean result = server._non_existent();
assertTrue (result == true);
assertFileNotContains (getLogFilename("jacorb.log"), ".*OBJECT_NOT_EXIST.*");
}