@Test
public void whenFindNotActivatedUsers() {

    ZonedDateTime now = ZonedDateTime.now();
    User user = this.createUser();
    user.setRegisterDate(now.minus(4, ChronoUnit.DAYS));
    this.userRepository.save(user);
    List<User> users = this.userRepository.findAllByActivatedIsFalseAndRegisterDateBefore(now.minus(3, ChronoUnit.DAYS));
    assertFalse(users.isEmpty());
    this.userService.removeNotActivatedUsers();
    users = userRepository.findAllByActivatedIsFalseAndRegisterDateBefore(now.minus(3, ChronoUnit.DAYS));
    assertTrue(users.isEmpty());
}