ApplicationContextMock appctx = new ApplicationContextMock();
//TODO: eliminate dependency to DOJO configuration!
appctx.putBean(mock(DOJOConfiguration.class));
appctx.putBean(mock(SessionDataContainer.class));
EventsDispatcher eventsDispatcher = mock(EventsDispatcher.class);
appctx.putBean(eventsDispatcher);
appctx.putBean(mock(AuthorizedUserService.class));
appctx.putBean(mock(UserReaderFactory.class));
appctx.putBean(mock(LocaleService.class));
appctx.putBean(mock(MenuService.class));