org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContext ncRef = NamingContextHelper.narrow(objRef);
NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
NameComponent path[] = {nc};
ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
RichUnion arg = new RichUnion();
InnerUnion inner = new InnerUnion();
inner.y(20f);
arg.iu(inner);
RichUnion result = ref.passRichUnion(arg);
assertEquals(arg.iu().y(), result.iu().y(), 0.0f);
arg = new RichUnion();
arg.y(15f);
result = ref.passRichUnion(arg);
assertEquals(arg.y(), result.y(), 0.0f);
} catch (Exception e) {
e.printStackTrace();
fail();
}
}