try {
Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
assertNotNull("The EJBHome returned from JNDI is null", home);
EncCmpObject object = home.create("test_54 CmpBean");
assertNotNull("The EJBObject created is null", object);
Handle expected[] = new Handle[3];
for (int i = 0; i < expected.length; i++) {
expected[i] = object.getHandle();
assertNotNull("The EJBObject Handle returned is null", expected[i]);
}
Handle[] actual = ejbObject.returnHandleArray(expected);
assertNotNull("The Handle array returned is null", actual);