@Test
public void testValidate() throws Exception {

  assertFalse( sec.validate() );
  sec.setTo( "to" );
  assertFalse( sec.validate() );
  sec.setFrom( "from" );
  assertFalse( sec.validate() );
  sec.setMessagePlain( "messagePlain" );
  sec.setMessageHtml( "messageHtml" );
  sec.setMimeMessage( mock( IContentItem.class ) );
  assertTrue( sec.validate() );
}