assertNotNull("Unexpected null role-mapping policy found", policyBean1.getRoleMappingPolicy());
ApplicationPolicyBean policyBean2 = (ApplicationPolicyBean) super.getBean("TestPolicy2");
assertNotNull("Unexpected null role-mapping policy found", policyBean2.getRoleMappingPolicy());
MappingPolicyBean mappingBean = (MappingPolicyBean) super.getBean("TestPolicy1$RoleMappingPolicy");
// assert the bean retrieved from the microcontainer is the same that has been injected into the app policy.
assertEquals(policyBean1.getRoleMappingPolicy(), mappingBean);
BeanValidator.validateRoleMappingBean(mappingBean);
mappingBean = (MappingPolicyBean) super.getBean("TestPolicy2$RoleMappingPolicy");