@Test
public void whenSendPasswordResetMailInRussian() throws MessagingException, IOException {

    User user = new User();
    user.setLogin("testlogin");
    user.setEmail("test@email.com");
    user.setLangKey("ru");
    this.mailService.sendPasswordResetMail(user);
    verify(javaMailSender).send((MimeMessage) messageCaptor.capture());
    MimeMessage message = (MimeMessage) messageCaptor.getValue();
    assertEquals(message.getAllRecipients()[0].toString(), user.getEmail());
    assertEquals(message.getFrom()[0].toString(), "localhost@localhost");
    assertEquals(message.getDataHandler().getContentType(), "text/html;charset=UTF-8");
    assertTrue(!message.getContent().toString().isEmpty());
}