InitialContext ctx = new InitialContext();
String ejbName = "spring-ear/" + SpringBeansManager.class.getSimpleName() + "Impl/remote";
log.info("Excuting lookup: " + ejbName);
Object result = ctx.lookup(ejbName);
assertNotNull(result);
SpringBeansManager manager = (SpringBeansManager)PortableRemoteObject.narrow(result, SpringBeansManager.class);
log.info("SpringBeansManager: " + manager);
assertEquals(3, manager.add(1, 2));
assertEquals(10, manager.multipy(2, 5));
manager.log("Some log");
}