assertNotNull("Unexpected null authorization policy found", policyBean1.getAuthorizationPolicy());
ApplicationPolicyBean policyBean2 = (ApplicationPolicyBean) super.getBean("TestPolicy2");
assertNotNull("Unexpected null authorization policy found", policyBean2.getAuthorizationPolicy());
AuthorizationPolicyBean authzBean = (AuthorizationPolicyBean) super.getBean("TestPolicy1$AuthorizationPolicy");
// assert the bean retrieved from the microcontainer is the same that has been injected into the app policy.
assertEquals(policyBean1.getAuthorizationPolicy(), authzBean);
BeanValidator.validateAuthorizationBean(authzBean);
authzBean = (AuthorizationPolicyBean) super.getBean("TestPolicy2$AuthorizationPolicy");