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

    handleStatements(trimmedLine);
  }
@Test
  public void shouldDescribeAggregateFunction() {
    final String expectedSummary =
            "Name        : TOPK\n"
            + "Author      : Confluent\n"
            + "Overview    : Returns the top k values for a column and other values in those records.\n"
            + "Type        : AGGREGATE\n"
            + "Jar         : internal\n"
            + "Variations  : \n";

    final String expectedVariant =
        "\tVariation   : TOPK(val1 INT, val2 ANY[], k INT)\n"
        + "\tReturns     : ARRAY<S>\n"
        + "\tDescription : Returns the top k values for an integer column and other values in those records.";

    localCli.handleLine("describe function topk;");

    final String output = terminal.getOutputString();
    assertThat(output, containsString(expectedSummary));
    assertThat(output, containsString(expectedVariant));
  }