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

    // Given:
    ServerInfo expectedResponse = new ServerInfo("someversion",
        "kafkaclusterid", "ksqlserviceid", "status");
    server.setResponseObject(expectedResponse);

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

    // Then:
    assertThat(server.getHttpMethod(), is(HttpMethod.GET));
    assertThat(server.getBody(), nullValue());
    assertThat(server.getPath(), is("/info"));
    assertThat(server.getHeaders().get("Accept"), is("application/json"));
    assertThat(response.get(), is(expectedResponse));
  }