appctx.putBean(mock(UserReaderFactory.class));
appctx.putBean(mock(LocaleService.class));
appctx.putBean(mock(MenuService.class));
appctx.putBean(mock(TargetLinkFactory.class));
appctx.putBean(mock(TargetKeyFactory.class));
WicketConfiguration wicketConfiguration = mock(WicketConfiguration.class);
when(wicketConfiguration.getItemsPerPage()).thenReturn(10);
appctx.putBean(wicketConfiguration);
appctx.putBean(mock(PagePreprocessorsRegistry.class));
appctx.putBean(mock(BreadcrumbInfoAccessor.class));
appctx.putBean(mock(BreadcrumbsStore.class));