addComponentInstantiationListener(new SpringComponentInjector(this, appctx, true));
ProviderManager authMan = new ProviderManager();
List<TestingAuthenticationProvider> providerList =
new ArrayList<TestingAuthenticationProvider>();
providerList.add(new TestingAuthenticationProvider());
authMan.setProviders(providerList);
// appctx.putBean("testAuthenticationProvider", authProvider);
// appctx.putBean("authenticationManager", authMan);
this.authenticationManager = authMan;