void handleLine(final String line) {
    final String trimmedLine = Optional.ofNullable(line).orElse("").trim();
    if (trimmedLine.isEmpty()) {
      return;
    }

    handleStatements(trimmedLine);
  }
@Test
  public void shouldIssueNonCCloudConnectorRequest() throws Exception {
    // Given:
    final KsqlRestClient mockRestClient = givenMockRestClient();
    when(mockRestClient.getIsCCloudServer()).thenReturn(false);
    when(mockRestClient.makeConnectorRequest(anyString(), anyLong()))
        .thenReturn(RestResponse.successful(
            OK.code(),
            new KsqlEntityList(Collections.singletonList(
                new ConnectorList("list connectors;", Collections.emptyList(), Collections.emptyList())))
        ));

    // When:
    localCli.handleLine("list connectors;");

    // Then:
    verify(mockRestClient).makeConnectorRequest(anyString(), anyLong());
  }