@Test
  public void showDatabasesTest() throws SQLException {
    try (final Connection connection = EnvFactory.getEnv().getConnection();
        final Statement statement = connection.createStatement()) {
      final String[] sqls =
          new String[] {
            "show databases",
            "show databases root.ln.wf01.**",
            "show databases root.ln.wf01.wt01.status"
          };
      final List<String>[] standards =
          new List[] {
            Arrays.asList(
                "root.ln.wf01.wt01",
                "root.ln.wf01.wt02",
                "root.ln1.wf01.wt01",
                "root.ln2.wf01.wt01"),
            Arrays.asList("root.ln.wf01.wt01", "root.ln.wf01.wt02"),
            Collections.emptyList()
          };

      for (int n = 0; n < sqls.length; n++) {
        final String sql = sqls[n];
        final List<String> standard = standards[n];
        int i = 0;
        try (final ResultSet resultSet = statement.executeQuery(sql)) {
          while (resultSet.next()) {
            assertEquals(standard.get(i++), resultSet.getString(1));
          }
          assertEquals(i, standard.size());
        } catch (final SQLException e) {
          e.printStackTrace();
          fail(e.getMessage());
        }
      }
    }
  }
Notice that, all test begins with "IoTDB" is integration test. All test which will start the
IoTDB server should be defined as integration test.
integration-test/src/test/java/org/apache/iotdb/db/it/schema/IoTDBMetadataFetchIT.java