try {
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));
String[][] stringArg = getStringArray();
String[][] stringRes = ref.passStringArray(stringArg);
assertTrue(areArraysEqual(stringArg, stringRes));
AnnotatedStruct structArg = new AnnotatedStruct();
structArg.stringArray = getStringArray();
AnnotatedStruct structRes = ref.passAnnotatedStruct(structArg);
assertTrue(areArraysEqual(structArg.stringArray, structRes.stringArray));
} catch (Exception e) {
e.printStackTrace();
fail();
}