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

    // Given:
    CommandStatus commandStatus = new CommandStatus(Status.SUCCESS, "msg");
    server.setResponseObject(commandStatus);

    // When:
    KsqlTarget target = ksqlClient.target(serverUri);
    RestResponse<CommandStatus> response = target.getStatus("foo");

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