try {
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContext ncRef = NamingContextHelper.narrow(objRef);
NameComponent nc = new NameComponent(serviceName, "");
NameComponent path[] = {nc};
ScenarioOne so = ScenarioOneHelper.narrow(ncRef.resolve(path));
RichStruct richStruct = getRichStruct();
RichStruct result = so.setRichStruct(richStruct);
assertTrue(equalTo(result, richStruct));