StatefulSession30RemoteBusiness statefulSession = (StatefulSession30RemoteBusiness) jndiContext.lookup("java:module/StatefulSession30!" + StatefulSession30RemoteBusiness.class.getName());
Assert.assertNotNull(statefulSession);
String access = statefulSession.accessLocalStateless();
Assert.assertEquals("Session30", access);
Session30RemoteBusiness session = (Session30RemoteBusiness) jndiContext.lookup("java:module/Session30!" + Session30RemoteBusiness.class.getName());
Assert.assertNotNull(session);
access = session.accessLocalStateful();
Assert.assertEquals("default", access);
access = session.accessLocalStateful("testing");
Assert.assertEquals("testing", access);
access = session.accessLocalStateful("testing", new Integer(123));
Assert.assertEquals("testing123", access);
}