@Test
public void testDefaultParameterHandling() throws Exception {

    PolicyParameters parameters = createParametersObject();
    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    assertThatThrownBy(() -> wrapper.populateRequestParameters(parameters))
                    .isInstanceOf(NullPointerException.class);
    parameters.setPolicyConfigType(PolicyConfigType.Firewall);
    PolicyRestAdapter adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("Firewall Config", adapter.getConfigPolicyType());
    parameters.setConfigBody("");
    assertNull(wrapper.populateRequestParameters((parameters)));
    parameters.setConfigBody("{\"name");
    assertNull(wrapper.populateRequestParameters((parameters)));
    parameters.setConfigBodyType(PolicyType.OTHER);
    parameters.setConfigBody(null);
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("Firewall Config", adapter.getConfigPolicyType());
    parameters.setPolicyConfigType(PolicyConfigType.Extended);
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("EXTENDED", adapter.getConfigPolicyType());
    parameters.setTtlDate(null);
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("NA", adapter.getTtlDate());
}