public static TableFactoryHelper createTableFactoryHelper(
            DynamicTableFactory factory, DynamicTableFactory.Context context) {
        return new TableFactoryHelper(factory, context);
    }
@Test
    void testInvalidFactoryHelperWithMapOption() {
        final Map<String, String> options = new HashMap<>();
        options.put("properties.prop-1", "value-1");
        options.put("properties.prop-2", "value-2");
        options.put("unknown", "value-3");

        final FactoryUtil.TableFactoryHelper helper =
                FactoryUtil.createTableFactoryHelper(
                        new TestFactoryWithMap(), FactoryMocks.createTableContext(SCHEMA, options));

        assertThatThrownBy(helper::validate)
                .satisfies(
                        anyCauseMatches(
                                ValidationException.class,
                                "Unsupported options found for 'test-factory-with-map'.\n\n"
                                        + "Unsupported options:\n\n"
                                        + "unknown\n\n"
                                        + "Supported options:\n\n"
                                        + "connector\n"
                                        + "properties\n"
                                        + "properties.prop-1\n"
                                        + "properties.prop-2\n"
                                        + "property-version"));
    }