private void readyStuff() {
ApplicationContext appcxt = new ClassPathXmlApplicationContext(
"AllInOneRepositoryContext.xml");
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));