@Test
public void testWrapperException() throws Exception{

    //environment
    when(request.getInputStream()).thenThrow(IOException.class);
    //test
    JWSHttpServletRequestWrapper jwsHttpServletRequestWrapper = new JWSHttpServletRequestWrapper(request, null);
    //verify
    InputStream is = jwsHttpServletRequestWrapper.getInputStream();
    Assert.assertTrue("Empty stream",is.read()<0);
}