Authenticator authenticator = new TestAuthenticator(principal);
ORB orb = createORB(authenticator);
EchoServiceImpl echoImpl = new EchoServiceImpl();
ExportServiceImpl exporterImpl = new ExportServiceImpl(echoImpl, orb);
Proxy proxy = orb.exportObject(exporterImpl);
orb.getRegistry().bind("service", proxy);
Registry registry = getRegistry(principal);
ExportService exporter = (ExportService) registry.lookup("service");
EchoService echoer = (EchoService) exporter.exportObjectTo();