@Test
public void testConfigClosedLoopFaultParameterHandling() throws Exception {

    PolicyParameters parameters = createParametersObject();
    parameters.setPolicyConfigType(PolicyConfigType.ClosedLoop_Fault);
    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    PolicyRestAdapter adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("ClosedLoop_Fault", adapter.getConfigPolicyType());
    parameters.setConfigBody("{\"someParameter\": \"someValue\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("ClosedLoop_Fault", adapter.getConfigPolicyType());
    parameters.setConfigBody("{\"onapname\": \"MyOnapName\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("MyOnapName", adapter.getOnapName());
}