### Question:
JdbcMetadataBuilder implements MetadataBuilder<Connection>,
        ParametrizedMetadataBuilder<Connection, PartialMetadataOptions> { protected String[] getSupportedTableTypes() { return (String[])jdbcMetaConfiguration.getTableTypes().toArray(new String[jdbcMetaConfiguration.getTableTypes().size()]); }  @Override SchemaElement build(Connection connection, PartialMetadataOptions options); SchemaElement build(Connection connection, Map<String, String[]> options); void setCharacterEscape(SpecialCharacterEscape characterEscape); static final String GROUP_KIND_SCHEMA; static final String GROUP_KIND_DATASOURCE; }### Answer:
@Test public void getSupportedTableTypes() { JdbcMetaConfigurationImpl jdbcMetaConfiguration = new JdbcMetaConfigurationImpl(); ArrayList<String> tableList = new ArrayList<String>(); tableList.add("TABLE"); tableList.add("MATERIALIZED VIEW"); jdbcMetaConfiguration.setTableTypes(tableList); jdbcMetadataBuilder.setJdbcMetaConfiguration(jdbcMetaConfiguration); String[] res = jdbcMetadataBuilder.getSupportedTableTypes(); assertEquals(res[0], "TABLE"); assertEquals(res[1], "MATERIALIZED VIEW"); }