@Test
public void whenRequestForPasswordResetForActivatedUser() {

    User expected = this.createUser();
    expected.setActivated(true);
    this.userRepository.save(expected);
    User result = this.userService.requestPasswordReset(expected.getEmail()).get();
    assertNotNull(result);
    assertEquals(expected.getEmail(), result.getEmail());
    assertNotNull(result.getResetKey());
}