userType.setUserTypeAccesses(userTypeAccesses);
when(login.getUserType()).thenReturn(userType);
final AttributeChoiceOverviewView view = new AttributeChoiceOverviewView(
new AttributeChoiceViewHandler(login, managerRepository,
new AttributeModel(new Attribute())));
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();