@Test
public void testConfigMicroserviceParameterHandling() throws Exception {

    PolicyParameters parameters = createParametersObject();
    parameters.setPolicyConfigType(PolicyConfigType.MicroService);
    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    assertNull(wrapper.populateRequestParameters((parameters)));
    parameters.setConfigBody("{\"someParameter\": \"someValue\"}");
    PolicyRestAdapter adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("Micro Service", adapter.getConfigPolicyType());
    parameters.setConfigBody("{\"service\": \"MyService\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("MyService", adapter.getServiceType());
    parameters.setConfigBody("{\"content\": \"{}\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("\"{}\"", adapter.getPolicyJSON().toString());
    parameters.setConfigBody("{\"content\": {hess:}}");
    assertNull(wrapper.populateRequestParameters((parameters)));
}