@Test
    public void httpResponse_with_InputStream() throws Exception {
        HttpResponse response = new HttpResponse(null, null);
        String inputStringStream = "functionCode cf = event.Records[0].cf";
        InputStream stream = new ByteArrayInputStream(inputStringStream.getBytes(StandardCharsets.UTF_8));
        response.setContent(stream);
        AmazonWebServiceResponse<InputStream> handle = responseHandler.handle(response);
        Assert.assertEquals(inputStringStream, IOUtils.toString(handle.getResult()));
    }
The handleResponse returns inputStream for httpResponse with InputStream.
aws-java-sdk-core/src/test/java/com/amazonaws/http/StaxResponseHandlerForBlobDataTest.java