@Test
public void shouldReadJsonResponse() throws Exception {

    // Given
    final Response response = new Response();
    response.value = "My Value";
    final ObjectMapper mapper = new ObjectMapper();
    final BasicHttpResponse httpResponse = buildResponse();
    httpResponse.setEntity(new StringEntity(mapper.writeValueAsString(response)));
    // When
    final Response value = Defaults.convertResponse(mapper, Response.class).apply(buildRequest(), httpResponse);
    // Then
    assertEquals("My Value", value.value);
}