assertFalse(WidgetRemote.class.equals(widgetRemoteClass));
Object testObject = testObjectClass.newInstance();
InitialContext ctx = new InitialContext();
EJBHome rawHome = (EJBHome) ctx.lookup("WidgetBeanRemoteHome");
;
EJBHome home = (EJBHome) copy(rawHome);
assertNotNull("home", home);
assertEquals(widgetHomeClass.getClassLoader(), home.getClass().getClassLoader());
assertTrue(widgetHomeClass.isAssignableFrom(home.getClass()));
testObjectClass.getField("widgetHome").set(testObject, home);
testObjectClass.getMethod("testRemoteInterface").invoke(testObject);
} finally {