userManagement.updatePersonAndSendEmail(john, new UserManagement.PersonInfo("Joe", "J", "jjj@j.com"), ImmutableSet.of(uc.getLab3()), urlProvider);
Notifier notifier = notificator();
verify(notifier).sendLabMembershipRequest(eq(labHead), Matchers.any(String.class), eq(john), eq(approveUrl), Matchers.any(String.class));
assertEquals(repo.findPendingByUser(john).size(), 1); //one request
}
private boolean labIsActive(long lab) {
try {
userManagement.createPersonAndApproveMembership(Data.PAUL_INFO, "", lab, null);