private String[] casesToString(Function<String, Object> fn) {
        List<String> successful = new ArrayList<>();
        for (SchemaAndValue testCase : TEST_VALUES) {
            String v = String.valueOf(testCase.value());
            try {
                fn.apply(v);
                successful.add(v);
            } catch (Throwable ignored) {
            }
        }
        return successful.toArray(new String[]{});
    }
This benchmark tests the performance of the {@link Values} data handling class.
jmh-benchmarks/src/main/java/org/apache/kafka/jmh/connect/ValuesBenchmark.java