public static SerdeFeatures buildValueFeatures(
      final LogicalSchema schema,
      final Format valueFormat,
      final SerdeFeatures explicitFeatures,
      final KsqlConfig ksqlConfig
  ) {
    final boolean singleColumn = schema.value().size() == 1;

    final ImmutableSet.Builder<SerdeFeature> builder = ImmutableSet.builder();

    getValueWrapping(singleColumn, valueFormat, explicitFeatures, ksqlConfig)
        .ifPresent(builder::add);

    return SerdeFeatures.from(builder.build());
  }
@Test
  public void shouldDefaultToNoSingleValueWrappingIfNoExplicitAndNoConfigDefault() {
    // When:
    final SerdeFeatures result = SerdeFeaturesFactory.buildValueFeatures(
        SINGLE_FIELD_SCHEMA,
        JSON,
        SerdeFeatures.of(),
        ksqlConfig
    );

    // Then:
    assertThat(result.findAny(SerdeFeatures.WRAPPING_FEATURES), is(Optional.empty()));
  }