SimpleMailTO extends CommonMailTO { public String getBodyText() { return bodyText; } private  SimpleMailTO(String toMailAddress, String fromMailAddress, String subject, String bodyText); static SimpleMailTO getValidInstance(String toMailAddress, String fromMailAddress, String subject, String bodyText); void validate(); String getBodyText();  }
@Test public void getSubject() { SimpleMailTO simpleMailTO = mailObjectMother.createSimpleMailTO(); assertEquals("Wrong subject", mailObjectMother.subject, simpleMailTO.getSubject()); assertEquals(mailObjectMother.bodyText, simpleMailTO.getBodyText()); }
@Test public void getBodyText() { SimpleMailTO simpleMailTO = mailObjectMother.createSimpleMailTO(); assertEquals("Wrong body text", mailObjectMother.bodyText, simpleMailTO.getBodyText()); }