AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
appctx.putBean("generalRepository", generalRepository);
WicketApplication wicketPersistanceApplication = new WicketApplication();
wicketPersistanceApplication
.setSpringComponentInjector(new SpringComponentInjector(
wicketPersistanceApplication, appctx));
wicketTester = new WicketTester(wicketPersistanceApplication);
}