public void testByReferenceOnEntity() throws Exception
{
InitialContext ctx = new InitialContext();
Object obj = ctx.lookup("RootTestByValue");
RootStatelessSessionHome home = (RootStatelessSessionHome) PortableRemoteObject.narrow(obj, RootStatelessSessionHome.class);
long time = home.create().doTestEntityByReference(ITERATIONS);
// I really wanted System.out as I wanted this to be sent to the XML output for ant junit tests
System.out.println("Time spent into CallByValues over "+ITERATIONS+" iterations=" + time);
}