+ "are no remote calls is null as expected.");
}
// step 2
ORB orb = ORB.init(new String[0], null);
IiopExporter ie = new IiopExporter(orb);
TestRemoteObject tro = new TestRemoteObject();
TestRemoteInterface stub = (TestRemoteInterface) ie.export(tro);
if (stub.checkGetServerContext().booleanValue()) {
// FAIL
throw new TestException(
"Result of getServerContext invocation when there are "
+ "no JRMP remote calls in progress but there is a "
+ "IIOP remote call in progress does not satisfy "
+ "specification.");
} else {
// PASS
logger.log(Level.FINE,
"Result of getServerContext invocation when there "
+ "are no JRMP remote calls in progress but there is a "
+ "IIOP remote call in progress satisfies "
+ "specification.");
}
// unexport object
ie.unexport(true);
// step 3
JrmpExporter je = createJrmpExporter();
tro = new TestRemoteObject();
stub = (TestRemoteInterface) je.export(tro);