@Test
public void whenRemoveNotActivatedUsers() {

    User user = this.createUser();
    user.setRegisterDate(ZonedDateTime.now().minus(30, ChronoUnit.DAYS));
    this.userRepository.save(user);
    assertTrue(this.userRepository.findByLogin("testtest").isPresent());
    this.userService.removeNotActivatedUsers();
    assertFalse(this.userRepository.findByLogin("testtest").isPresent());
}