@Test
public void testSendMessageForEnrollment()
{

    setUpSendMessageForEnrollment();
    ProgramInstance programInstance = programInstanceService.getProgramInstance( "UID-P1" );
    List<RuleEffect> ruleEffects = programRuleEngine.evaluate( programInstance, Sets.newHashSet() );
    assertEquals( 1, ruleEffects.size() );
    RuleAction ruleAction = ruleEffects.get( 0 ).ruleAction();
    assertTrue( ruleAction instanceof RuleActionSendMessage );
    RuleActionSendMessage ruleActionSendMessage = (RuleActionSendMessage) ruleAction;
    assertEquals( "PNT-1", ruleActionSendMessage.notification() );
}