@Test
public void testSubjectLengthIsLimited()
{

    Entity e = entity();
    String templateString = CodeGenerator.generateCode( 101 );
    NotificationTemplate template = template( templateString );
    NotificationMessage message = renderer.render( e, template );
    assertNotNull( message );
    assertEquals( BaseNotificationMessageRenderer.SUBJECT_CHAR_LIMIT, message.getSubject().length() );
}