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
.getBean("TestPolicy2$JASPIAuthenticationPolicy");
assertEquals(policyBean2.getAuthenticationPolicy(), jaspiAuthBean);
BeanValidator.validateJaspiAuthenticationBean(jaspiAuthBean);
// verify that the application policies have been created in the security layer and validate their contents.