public KsqlTarget target(final URI server) {
    return target(server, Collections.emptyMap());
  }
@Test
  public void shouldHandleArbitraryErrorsOnGetRequests() {

    // Given:
    server.setErrorCode(417);

    // When:
    KsqlTarget target = ksqlClient.target(serverUri);
    RestResponse<ServerInfo> response = target.getServerInfo();

    // Then:
    assertThat(server.getHttpMethod(), is(HttpMethod.GET));
    assertThat(response.isErroneous(), is(true));
    assertThat(response.getErrorMessage().getMessage(),
        is("The server returned an unexpected error: Expectation Failed"));
  }