@Test
public void testConfigBrmsParameterHandling() throws Exception {

    PolicyParameters parameters = createParametersObject();
    parameters.setPolicyConfigType(PolicyConfigType.BRMS_PARAM);
    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    assertThatThrownBy(() -> wrapper.populateRequestParameters(parameters))
                    .isInstanceOf(NullPointerException.class);
    Map<AttributeType, Map<String, String>> attributes = new LinkedHashMap<>();
    parameters.setAttributes(attributes);
    assertThatThrownBy(() -> wrapper.populateRequestParameters(parameters))
                    .isInstanceOf(NullPointerException.class);
    Map<String, String> templateMap = new LinkedHashMap<>();
    templateMap.put("templateName", "Template Name");
    attributes.put(AttributeType.RULE, templateMap);
    PolicyRestAdapter adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("BRMS_Param", adapter.getConfigPolicyType());
    assertEquals("Template Name", adapter.getRuleName());
    parameters.setConfigBody("{\"someParameter\": \"someValue\"}");
    adapter = wrapper.populateRequestParameters((parameters));
    assertEquals("BRMS_Param", adapter.getConfigPolicyType());
}