log.debug("+++ testCustomEJBPrincipal()");
Object obj = getInitialContext().lookup("jaas.CustomPrincipal2Home");
obj = PortableRemoteObject.narrow(obj, CustomPrincipalHome.class);
CustomPrincipalHome home = (CustomPrincipalHome) obj;
log.debug("Found CustomPrincipalHome");
CustomPrincipal bean = home.create();
log.debug("Created CustomPrincipal");
boolean isCustomType = bean.validateCallerPrincipal(CustomPrincipalImpl.class);
bean.remove();
logout();
assertTrue("CustomPrincipalImpl was seen", isCustomType);
}