### Question:
MetadataClient implements AutoCloseable { public List<TableValue> getTableSchema(String tableName) { List<TableValue> tbls = new ArrayList<>(); String sql = String.format("select DB_ID,TBL_ID,TBL_NAME from TBLS where TBL_NAME='%s'", tableName); LOGGER.debug("getTableSchema sql is {}", sql); try (PreparedStatement preparedStatement = connection.prepareStatement(sql)) { try (ResultSet resultSet = preparedStatement.executeQuery()) { if (resultSet != null) { while (resultSet.next()) { TableValue tbl = new TableValue(); tbl.setDbId(resultSet.getLong("DB_ID")); tbl.setTblId(resultSet.getLong("TBL_ID")); tbl.setTblName(resultSet.getString("TBL_NAME")); tbls.add(tbl); } } } return tbls; } catch (SQLException ex) { throw new RuntimeException(ex); } } MetadataClient(); DatabaseValue getBasicDatabaseInfoById(Long dbId); List<DatabaseValue> getDataBaseList(); DatabaseValue getBasicDatabaseInfo(String databaseName); Long insertBasicDatabaseInfo(DatabaseValue value); void insertDatabaseSchema(List<DatabaseParamValue> values); List<DatabaseParamValue> getDatabaseSchema(Long databaseId); Long insertTableSchema(TableValue value); List<TableValue> getTableSchema(String tableName); List<TableValue> getTableSchemaByTbl(String tableName); void insertFieldsSchema(List<ColumnValue> columns); void deleteFieldsSchema(Long tbId); List<ColumnValue> getFieldsSchema(Long tableId); void setAutoCommit(boolean flag); void commit(); void rollback(); void close(); String getLastInsertSql();  }### Answer:
@Test public void testQueryNonExistedTableSchemaByTableName() { List<TableValue> tables = client.getTableSchema("NOT_EXISTED_TABLE"); Assert.assertTrue(tables.isEmpty()); }