props.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/openejb/ejb");
try {
Context ctx = new InitialContext(props);
System.out.println("Found context " + ctx);
final Object ref = ctx.lookup("CalculatorImplRemote");
Calculator calc = (Calculator) PortableRemoteObject.narrow(ref, Calculator.class);
double result = calc.add(10, 30);
Assert.assertEquals(40, result, 0.5);
} catch (Exception e) {
e.printStackTrace();
}
}