Object obj = ctx.lookup("StaxEJB/Stax/org.apache.geronimo.test.StaxObject");
StaxHome ejbHome =
(StaxHome)PortableRemoteObject.narrow(obj, StaxHome.class);
StaxObject ejbObject = ejbHome.create();
List factoryList = ejbObject.testStax();
assertEquals(3, factoryList.size());
assertEquals("InputFactory",