### Question:
S3XmlResponseHandler extends AbstractS3ResponseHandler<T> { public S3XmlResponseHandler(Unmarshaller<T, InputStream> responseUnmarshaller) { this.responseUnmarshaller = responseUnmarshaller; } S3XmlResponseHandler(Unmarshaller<T, InputStream> responseUnmarshaller); @Override AmazonWebServiceResponse<T> handle(HttpResponse response); Map<String, String> getResponseHeaders();  }### Answer:
@Test public void testS3XmlResponseHandlerTest() throws Exception { ByteArrayInputStream bais = new ByteArrayInputStream("content".getBytes(StringUtils.UTF8)); HttpResponse response = new HttpResponse.Builder().content(bais) .header("testKey", "testValue").build(); final List<Boolean> handleCalled = new ArrayList<Boolean>(); S3XmlResponseHandler<String> handler = new S3XmlResponseHandler<String>( new Unmarshaller<String, InputStream>() { @Override public String unmarshall(InputStream in) throws Exception { assertEquals("content", IOUtils.toString(in)); handleCalled.add(true); return null; } }); handler.handle(response); assertEquals(handleCalled.size(), 1); assertTrue(handleCalled.get(0)); }