@Test
public void shouldAddAuthorizationHeader() throws IOException {

    final Request request = unit.createRequest(URI.create("localhost"), "POST");
    assertThat(request.getHeaders().headerNames(), contains(Headers.AUTHORIZATION));
    assertThat(request.getHeaders().getFirst(Headers.AUTHORIZATION), equalTo(BEARER_TOKEN));
}