IsNotOutOfAreaRule implements IRule { @Override public boolean apply(SafeMap reportFields) { return IS_OUT_OF_AREA_FALSE.equalsIgnoreCase(reportFields.get(IS_OUT_OF_AREA)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnFalseWhenTheEntityIsOutOfArea() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("isOutOfArea", "true"))); assertFalse(didRuleSucceed); }
@Test public void shouldReturnTrueWhenTheEntityNotIsOutOfArea() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("isOutOfArea", "false"))); assertTrue(didRuleSucceed); }