when(login.getApplicationUser()).thenReturn(applicationUser);
UserType userType = new UserType();
userType.setIsAdmin(1);
when(login.getUserType()).thenReturn(userType);
AbstractProductionPackageViewHandler<FaktureringV> productionViewHandler = new InvoiceViewHandler(
login, new InvoiceApplyList(login, faktureringVManager),
managerRepository, deviationViewHandlerFactory);
final ApplyListView<FaktureringV> viewer = new ApplyListView<FaktureringV>(
productionViewHandler, false);