@Test
public void testConfigFirewallParameterHandling() throws Exception {

    PolicyParameters parameters = createParametersObject();
    parameters.setPolicyConfigType(PolicyConfigType.Firewall);
    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    PolicyRestAdapter adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("Firewall Config", adapter.getConfigPolicyType());
    parameters.setConfigBody("{\"someParameter\": \"someValue\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals(null, adapter.getSecurityZone());
    assertEquals("ConfigName", adapter.getConfigName());
    parameters.setConfigBody("{\"securityZoneId\": \"SecurityZone\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("SecurityZone", adapter.getSecurityZone());
    parameters.setConfigBody("{\"configName\": \"AnotherConfigName\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("AnotherConfigName", adapter.getConfigName());
}