NewFPMethodIsOCPRule implements IRule { @Override public boolean apply(SafeMap reportFields) { return OCP_FP_METHOD_VALUE.equalsIgnoreCase(reportFields.get(NEW_FP_METHOD_FIELD_NAME)); }  @Override boolean apply(SafeMap reportFields);  }
@Test public void shouldReturnFalseWhenNewFPMethodOfECIsNotOCP() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("newMethod", "condom"))); assertFalse(didRuleSucceed); }
@Test public void shouldReturnTrueIfNewFPMethodOfTheECIsOCP() { boolean didRuleSucceed = rule.apply(new SafeMap(mapOf("newMethod", "ocp"))); assertTrue(didRuleSucceed); }