@Test
public void sendMessage() {

    // given
    var expectedFrom = "sender@test.com";
    var expectedTo = "mail@googlemail.com";
    var expectedSubject = "This is a subject :-)";
    var expectedText = "This is a cool text and very long too!";
    var expectedSimpleMessage = new SimpleMailMessage();
    expectedSimpleMessage.setFrom(expectedFrom);
    expectedSimpleMessage.setTo(expectedTo);
    expectedSimpleMessage.setSubject(expectedSubject);
    expectedSimpleMessage.setText(expectedText);
    given(templateMessageMock.getSubject()).willReturn(expectedSubject);
    given(templateMessageMock.getText()).willReturn(expectedText);
    given(templateMessageMock.getAddressee()).willReturn(userMock);
    given(userServiceMock.getUserData(userMock)).willReturn(userDataMock);
    given(userDataMock.getEmail()).willReturn(expectedTo);
    given(mailPropertiesMock.getFromMail()).willReturn(expectedFrom);
    // when
    mailSenderAdapter.sendMessage(templateMessageMock);
    // then
    verify(javaMailSenderMock).send(expectedSimpleMessage);
}