@Test
public void shouldReturnString() throws Exception {

    // When
    final BasicHttpResponse response = buildResponse();
    response.setEntity(new StringEntity("My response"));
    final String value = Defaults.asString().apply(buildRequest(), response);
    // Then
    assertEquals("My response", value);
}