static Properties resolveProducerProperties(Map<String, String> options, Object keySchema, Object valueSchema) {
        Properties properties = from(options);

        withSerdeProducerProperties(true, options, keySchema, properties);
        withSerdeProducerProperties(false, options, valueSchema, properties);

        return properties;
    }
@Test
    @Parameters(method = "producerValues")
    public void test_producerProperties_java(String clazz, String serializer) {
        // key
        assertThat(resolveProducerProperties(Map.of(
                OPTION_KEY_FORMAT, JAVA_FORMAT,
                OPTION_KEY_CLASS, clazz
        ))).containsExactlyEntriesOf(Map.of(KEY_SERIALIZER, serializer));

        // value
        assertThat(resolveProducerProperties(Map.of(
                OPTION_KEY_FORMAT, UNKNOWN_FORMAT,
                OPTION_VALUE_FORMAT, JAVA_FORMAT,
                OPTION_VALUE_CLASS, clazz)
        )).containsExactlyEntriesOf(Map.of(VALUE_SERIALIZER, serializer));
    }