IsEconomicStatusAPLRule implements IRule { @Override public boolean apply(SafeMap reportFields) { return ECONOMIC_STATUS_APL_VALUE.equalsIgnoreCase(reportFields.get(ECONOMIC_STATUS)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnFalseWhenEconomicStatusIsNotAPL() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("economicStatus", "bpl"))); assertFalse(didRuleSucceed); }
@Test public void shouldReturnFalseWhenEconomicStatusIsAPL() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("economicStatus", "apl"))); assertTrue(didRuleSucceed); }