generalRepository = (GeneralRepository) appcxt.getBean("generalRepository");
// 2. setup mock injection environment
AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
appctx.putBean("generalRepository", generalRepository);
WicketApplication wicketPersistanceApplication = new WicketApplication();
wicketPersistanceApplication
.setSpringComponentInjector(new SpringComponentInjector(
wicketPersistanceApplication, appctx));
wicketTester = new WicketTester(wicketPersistanceApplication);
}