@Test
public void testPolicyConfigFirewallValidation() throws IOException {

    PolicyValidation validation = new PolicyValidation();
    PolicyRestAdapter policyData = new PolicyRestAdapter();
    policyData.setPolicyName("ALegalPolicyName");
    policyData.setPolicyDescription("A Valid Description");
    String responseString = validation.validatePolicy(policyData).toString();
    assertEquals("success", responseString);
    policyData.setApiflag("API");
    responseString = validation.validatePolicy(policyData).toString();
    assertEquals("success", responseString);
    // Invalid values tested in config base test
    policyData.setOnapName("AValidOnapName");
    policyData.setRiskType("AValidRiskType");
    policyData.setRiskLevel("AValidRiskLevel");
    policyData.setGuard("AValidGuard");
    assertEquals("success", responseString);
    policyData.setPolicyType("Config");
    policyData.setConfigPolicyType("Firewall Config");
    responseString = validation.validatePolicy(policyData).toString();
    assertThat(responseString).contains("Config Name is required");
    policyData.setConfigName("");
    responseString = validation.validatePolicy(policyData).toString();
    assertThat(responseString).contains("Config Name is required");
    policyData.setConfigName("%%%$$$$");
    responseString = validation.validatePolicy(policyData).toString();
    assertThat(responseString).contains("<b>ConfigName</b>:<i>The Value in Required Field");
    policyData.setConfigName("AValidConfigName");
    responseString = validation.validatePolicy(policyData).toString();
    assertThat(responseString).contains("Security Zone is required");
    policyData.setSecurityZone("");
    responseString = validation.validatePolicy(policyData).toString();
    assertThat(responseString).contains("Security Zone is required");
    policyData.setSecurityZone("AValidSeurityZone");
    responseString = validation.validatePolicy(policyData).toString();
    assertEquals("success@#", responseString);
}