public static String formatSql(final AstNode root) {
    final StringBuilder builder = new StringBuilder();
    new Formatter(builder).process(root, 0);
    return StringUtils.stripEnd(builder.toString(), "\n");
  }
@Test
  public void shouldFormatShowConnectorPlugins() {
    // Given:
    final ListConnectorPlugins listConnectorPlugins = new ListConnectorPlugins(Optional.empty());

    // When:
    final String formatted = SqlFormatter.formatSql(listConnectorPlugins);

    // Then:
    assertThat(formatted, is("SHOW CONNECTOR PLUGINS"));
  }