ApplicationPolicyBean policyBean2 = (ApplicationPolicyBean) super.getBean("TestPolicy2");
assertNotNull("ApplicationPolicyBean TestPolicy2 not found", policyBean2);
assertNotNull("Unexpected null jaspi authentication policy found", policyBean2.getAuthenticationPolicy());
AuthenticationPolicyBean authBean = (AuthenticationPolicyBean) super.getBean("TestPolicy1$AuthenticationPolicy");
// assert the bean retrieved from the microcontainer is the same that has been injected into the app policy.
assertEquals(policyBean1.getAuthenticationPolicy(), authBean);
BeanValidator.validateAuthenticationBean(authBean);
JASPIAuthenticationPolicyBean jaspiAuthBean = (JASPIAuthenticationPolicyBean) super