view = EasyMock.createMock(IoAssociationView.class);
filterView = EasyMock.createMock(SearchFilterView.class);
advancedView = EasyMock.createMock(AdvancedSearchView.class);
EasyMock.expect(view.getSearch()).andReturn(filterView);
EasyMock.expect(filterView.getAdvancedView()).andReturn(advancedView);
bus = new SimpleEventBus();
service = EasyMock.createMock(FormBuilderService.class);
i18n = EasyMock.createMock(I18NConstants.class);
fbg.registerService(service);
fbg.registerI18n(i18n);
cg.registerEventBus(bus);