orb = server.getORB();
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContext ncRef = NamingContextHelper.narrow(objRef);
NameComponent nc = new NameComponent(GENERATED_SERVICE_NAME, "");
NameComponent path[] = {nc};
ScenarioTwo scenarioTwo = new ScenarioTwoServant();
ncRef.rebind(path, scenarioTwo);
} catch (Throwable e) {
e.printStackTrace();
Assert.fail(e.getMessage());
}