assertNotNull("Invalid null MappingManager found", mappingManager);
assertEquals("Invalid MappingManager implementation found", MockMappingManager.class, mappingManager.getClass());
assertEquals("TestPolicy1", mappingManager.getSecurityDomain());
// check the audit manager injection.
AuditManager auditManager = testBean.getAuditManager();
assertNotNull("Invalid null AuditManager found", auditManager);
assertEquals("Invalid AuditManager implementation found", MockAuditManager.class, auditManager.getClass());
assertEquals("TestPolicy1", auditManager.getSecurityDomain());
// check the identity-trust injection.
IdentityTrustManager trustManager = testBean.getIdentityTrustManager();
assertNotNull("Invalid null IdentityTrustManager found", trustManager);
assertEquals("Invalid IdentityTrustManager implementation found", MockIdentityTrustManager.class, trustManager