BRMSParamPolicyService { public Boolean getValidation() { boolean levelCheck = PolicyApiUtils.isNumeric(policyParameters.getRiskLevel()); if (!levelCheck) { message = XACMLErrorConstants.ERROR_DATA_ISSUE + "Incorrect Risk Level given."; return false; } drlRuleAndUIParams = policyParameters.getAttributes(); if (drlRuleAndUIParams == null || drlRuleAndUIParams.isEmpty()) { message = XACMLErrorConstants.ERROR_DATA_ISSUE + "No Rule Attributes given."; return false; } return true; } BRMSParamPolicyService(String policyName, String policyScope,
                                  PolicyParameters policyParameters, String date); Boolean getValidation(); String getMessage(); String getResult(boolean updateFlag);  }
@Test public final void testGetValidation() { assertTrue(service.getValidation()); }