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