@Test
public void testHttpRequest() throws Exception {

    PolicyValidationRequestWrapper wrapper = new PolicyValidationRequestWrapper();
    assertNull(wrapper.populateRequestParameters((HttpServletRequest) null));
    BufferedReader decisionPolicyReader = new BufferedReader(new StringReader(
                    TextFileUtils.getTextFileAsString("src/test/resources/policies/DecisionPolicy.json")));
    Mockito.when(request.getReader()).thenReturn(decisionPolicyReader);
    wrapper.populateRequestParameters(request);
    BufferedReader policyJsonTrapFaultReader = new BufferedReader(new StringReader(
                    TextFileUtils.getTextFileAsString("src/test/resources/policies/PolicyJsonTrapFault.json")));
    Mockito.when(request.getReader()).thenReturn(policyJsonTrapFaultReader);
    wrapper.populateRequestParameters(request);
    BufferedReader badJsonReader = new BufferedReader(new StringReader("{"));
    Mockito.when(request.getReader()).thenReturn(badJsonReader);
    wrapper.populateRequestParameters(request);
}