getORB().shutdown(); // default ORB setup withouth auth
// set up the orb
BasicPrincipal principal = new BasicPrincipal("user", "password");
Authenticator authenticator = new TestAuthenticator(principal);
ORB orb = createORB(authenticator);
// set up the echo service
EchoService service = new EchoServiceImpl();
_service = orb.exportObject(service);
assertTrue(_service instanceof EchoService);
orb.getRegistry().bind(ECHO_SERVICE, _service);
// make sure a valid user can perform a lookup
Registry registry = getRegistry(principal);
assertNotNull(registry);
Proxy proxy = registry.lookup(ECHO_SERVICE);