AttributeManager attributeManager = (AttributeManager) ModelUtil
.getBean(AttributeManager.MANAGER_NAME);
when(managerRepository.getAttributeManager()).thenReturn(
attributeManager);
viewHandler = new ArticleTypeViewHandler(login, managerRepository, null);
final OverviewView<ArticleType, ArticleTypeModel> view = new OverviewView<ArticleType, ArticleTypeModel>(
viewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {