private static List<Class<?>> expectedClassesFor(Schema schema) {
        List<Class<?>> expectedClasses = LOGICAL_TYPE_CLASSES.get(schema.name());
        if (expectedClasses == null)
            expectedClasses = SCHEMA_TYPE_CLASSES.getOrDefault(schema.type(), Collections.emptyList());
        return expectedClasses;
    }
Validate that the value can be used with the schema, i.e. that its type matches the schema type and nullability
requirements. Throws a {@link DataException} if the value is invalid.
@param schema Schema to test
@param value value to test
connect/api/src/main/java/org/apache/kafka/connect/data/ConnectSchema.java