@Test
public void Should_MessageAttributeSettersSetMessageSubjectAndSenderSign()
        throws Exception {

    IObject context = new DSObject("{\"senderAddress\":\"some@address.ru\"}");
    IObject attributes = new DSObject("{\"subject\":\"Subj.\",\"sign\":\"Author\"}");
    MimeMessage mimeMessage = mock(MimeMessage.class);
    SMTPMessageAdaptor messageAdaptor = mock(SMTPMessageAdaptor.class);
    when(messageAdaptor.getMimeMessage()).thenReturn(mimeMessage);
    MessageAttributeSetters.applyAll(attributes, context, messageAdaptor);
    verify(mimeMessage).setSubject("Subj.");
    verify(mimeMessage).setFrom(new InternetAddress("Author<some@address.ru>"));
}