{
ApplicationContextMock appctx = new ApplicationContextMock();
// Make injection of spring beans in wicket-related classes possible using
// @SpringBean.
addComponentInstantiationListener(new SpringComponentInjector(this, appctx, true));
ProviderManager authMan = new ProviderManager();
List<TestingAuthenticationProvider> providerList =
new ArrayList<TestingAuthenticationProvider>();
providerList.add(new TestingAuthenticationProvider());