.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.
ApplicationPolicy policy1 = XMLLoginConfigImpl.getInstance().getApplicationPolicy("TestPolicy1");
assertNotNull("Application policy TestPolicy1 not found", policy1);
assertEquals("TestPolicy1", policy1.getName());
PolicyValidator.validateAuthenticationPolicy("TestPolicy1", (AuthenticationInfo) policy1.getAuthenticationInfo());
ApplicationPolicy policy2 = XMLLoginConfigImpl.getInstance().getApplicationPolicy("TestPolicy2");
assertNotNull("Application policy TestPolicy2 not found", policy2);
assertEquals("TestPolicy2", policy2.getName());
PolicyValidator.validateJaspiAuthenticationPolicy("TestPolicy2", (JASPIAuthenticationInfo) policy2
.getAuthenticationInfo());
// check the contents of the array returned by XMLLoginConfigImpl.getAppConfigurationEntry.
this.validateAppConfigurationEntryCreation();
}