assertNotNull("Unexpected null identity-trust policy found", policyBean1.getIdentityTrustPolicy());
ApplicationPolicyBean policyBean2 = (ApplicationPolicyBean) super.getBean("TestPolicy2");
assertNotNull("Unexpected null identity-trust policy found", policyBean2.getIdentityTrustPolicy());
IdentityTrustPolicyBean trustBean = (IdentityTrustPolicyBean) super.getBean("TestPolicy1$IdentityTrustPolicy");
// assert the bean retrieved from the microcontainer is the same that has been injected into the app policy.
assertEquals(policyBean1.getIdentityTrustPolicy(), trustBean);
BeanValidator.validateIdentityTrustBean(trustBean);
trustBean = (IdentityTrustPolicyBean) super.getBean("TestPolicy2$IdentityTrustPolicy");