ApplicationUserUtil.setApplicationUserManager(applicationUserManager);
when(managerRepository.getDeviationStatusManager()).thenReturn(
deviationStatusManager);
UserType userType = new UserType();
Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
UserTypeAccess userTypeAccess = new UserTypeAccess();
userTypeAccess.setWriteAccess(1);
WindowAccess windowAccess = new WindowAccess();
windowAccess.setWindowName("Garasjetype");
userTypeAccess.setWindowAccess(windowAccess);
userTypeAccesses.add(userTypeAccess);
userType.setUserTypeAccesses(userTypeAccesses);
when(login.getUserType()).thenReturn(userType);
ApplicationUser applicationUser = new ApplicationUser();