// Ensure that the DefaultApplicationSecurityManager will properly
// auto-configure when it is created with "new" instead of through an
// application context.
prepareApplication( "security-test-autoconfig-ctx.xml" );
ApplicationSecurityManager asm = new DefaultApplicationSecurityManager( true );
// Ensure it's the right one
Object am = ac.getBean( "authenticationManager" );
assertEquals( "Wrong authentication manager configured", am, asm.getAuthenticationManager() );
}