IsTTBoosterDoseGivenForMother implements IRule { @Override public boolean apply(SafeMap reportFields) { return TT_BOOSTER_DOSE_VALUE.equals(reportFields.get(TT_DOSE_FIELD)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnTrueWhenTTBoosterDoseIsGiven() { boolean didRuleSucceed = rule.apply(new SafeMap().put("ttDose", "ttbooster")); assertTrue(didRuleSucceed); }
@Test public void shouldReturnFalseWhenTTBoosterDoseIsNotGiven() { boolean didRuleSucceed = rule.apply(new SafeMap().put("ttDose", "tt1")); assertFalse(didRuleSucceed); }