new WindowAccess(null, "Attributter", null)));
userType.setUserTypeAccesses(userTypeAccesses);
when(login.getUserType()).thenReturn(userType);
UserUtil.setUserTypeManagerForTest(userTypeManager);
AttributeViewHandler attributeViewHandler = new AttributeViewHandler(
login, managerRepository);
final EditAttributeView editAttributeView = new EditAttributeView(
attributeViewHandler, new Attribute(), false);