test_class.declarator: TEST_CONTENT="Some text content"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_CONTENT="Some text content";
test_class.type: String
test_class.var_name: TEST_CONTENT
test_class.declarator: request
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HttpServletRequest request ;
test_class.type: HttpServletRequest
test_class.var_name: request
test_class.file: framework/modules/backend/front-facade/rest/src/test/java/org/appverse/web/framework/backend/frontfacade/rest/authentication/servlet/JWSHttpServletRequestWrapperTest.java
test_class.identifier: JWSHttpServletRequestWrapperTest
test_case.body: @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);
  
  
  
      }
test_case.class_method_signature: JWSHttpServletRequestWrapperTest.testWrapperException()
test_case.full_signature: @Test public void testWrapperException()
test_case.identifier: testWrapperException
test_case.invocations: thenThrow when getInputStream getInputStream assertTrue read
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWrapperException()
focal_class.declarator: logger = LoggerFactory.getLogger(JWSHttpServletRequestWrapper.class)
focal_class.modifier: private
focal_class.original_string: private Logger logger = LoggerFactory.getLogger(JWSHttpServletRequestWrapper.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: body
focal_class.modifier: private final
focal_class.original_string: private final String body;
focal_class.type: String
focal_class.var_name: body
focal_class.file: framework/modules/backend/front-facade/rest/src/main/java/org/appverse/web/framework/backend/frontfacade/rest/authentication/servlet/JWSHttpServletRequestWrapper.java
focal_class.identifier: JWSHttpServletRequestWrapper
focal_class.class_method_signature: JWSHttpServletRequestWrapper.JWSHttpServletRequestWrapper(final HttpServletRequest request, final String rolePrefix)
focal_class.full_signature: public  JWSHttpServletRequestWrapper(final HttpServletRequest request, final String rolePrefix)
focal_class.identifier: JWSHttpServletRequestWrapper
focal_class.modifiers: public
focal_class.parameters: (final HttpServletRequest request, final String rolePrefix)
focal_class.signature:  JWSHttpServletRequestWrapper(final HttpServletRequest request, final String rolePrefix)
focal_class.class_method_signature: JWSHttpServletRequestWrapper.getInputStream()
focal_class.full_signature: @Override public ServletInputStream getInputStream()
focal_class.identifier: getInputStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ServletInputStream
focal_class.signature: ServletInputStream getInputStream()
focal_class.superclass: extends SecurityContextHolderAwareRequestWrapper
focal_method.body: @Override
  	public ServletInputStream getInputStream() throws IOException {
  		final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(body.getBytes());
  
  		ServletInputStream inputStream = new ServletInputStream() {
  			@Override
  			public int read() throws IOException {
  				return byteArrayInputStream.read();
  			}
  		};
  
  		return inputStream;
  	}
focal_method.class_method_signature: JWSHttpServletRequestWrapper.getInputStream()
focal_method.full_signature: @Override public ServletInputStream getInputStream()
focal_method.identifier: getInputStream
focal_method.invocations: getBytes read
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: ServletInputStream
focal_method.signature: ServletInputStream getInputStream()