ApplicationContextMock ctx = new ApplicationContextMock();
addDependenciesToContext(ctx);
tester = new WicketTester();
tester.getApplication().getComponentInstantiationListeners().add(
new SpringComponentInjector(tester.getApplication(), ctx, true));
// add string resource loader
// TODO: make this work for 1.5
// tester.getApplication().getResourceSettings().addStringResourceLoader(
// new ComponentStringResourceLoader());