IsMotherDoesNotHaveFeverRule implements IRule { @Override public boolean apply(SafeMap reportFields) { return EMPTY_STRING.equalsIgnoreCase(reportFields.get(HAS_FEVER_FIELD)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnTrueIfMotherDoesNotHaveFever() { boolean didRuleApply = rule.apply(new SafeMap(create("hasFever", "").map())); assertTrue(didRuleApply); }
@Test public void shouldReturnFalseIfMotherHasFever() { SafeMap safeMap = new SafeMap(create("hasFever", "High fever").map()); boolean didRuleApply = rule.apply(safeMap); assertFalse(didRuleApply); }