    @Test
    public void run_mockedTransport_transportSendAnyMessage() throws MessagingException {

        //given
        Email email = mock(Email.class);
        when(email.getFromAddress()).thenReturn("a@a.com");
        when(email.getFromPersonal()).thenReturn("A Personal");
        when(email.getTo()).thenReturn("b@b.com");
        when(email.getReplyToAddress()).thenReturn("c@c.com");
        Transport transport = mock(Transport.class);
        SendEmailTask sendEmailTask = new SendEmailTask(email, transport);

        //when
        sendEmailTask.run();

        //then
        verify(transport).send(any(Message.class));
    }