@Override
    protected List<Object[]> rows() {
        List<Object[]> rows = new ArrayList<>(dataConnectionCatalogEntries.size());
        for (DataConnectionCatalogEntry dl : dataConnectionCatalogEntries) {
            final Map<String, String> options;
            if (!securityEnabled) {
                options = dl.options();
            } else {
                options = new TreeMap<>();
                Set<String> safeOptions = connectorCache.forType(dl.type()).nonSensitiveConnectorOptions();
                for (Map.Entry<String, String> e : dl.options().entrySet()) {
                    if (safeOptions.contains(e.getKey())) {
                        options.put(e.getKey(), e.getValue());
                    }
                }
            }
            Object[] row = new Object[]{
                    catalog(),
                    dataConnectionSchema,
                    dl.name(),
                    dl.type(),
                    dl.isShared(),
                    uncheckCall(() -> JsonUtil.toJson(options)),
                    dl.source().name()
            };
            rows.add(row);
        }
        return rows;
    }
@Test
    public void test_rows() {
        // given
        DataConnectionCatalogEntry dc = new DataConnectionCatalogEntry(
                "dc-name",
                "dc-type",
                false,
                singletonMap("key", "value")
        );

        DataConnectionsTable dcTable = new DataConnectionsTable(
                "catalog",
                "public",
                "dc-schema",
                singletonList(dc),
                connectorCache,
                false);

        // when
        List<Object[]> rows = dcTable.rows();

        // then
        assertThat(rows).containsExactly(new Object[]{
                "catalog"
                , "dc-schema"
                , "dc-name"
                , "dc-type"
                , false
                , "{\"key\":\"value\"}"
                , "SQL"
        });
    }