public static void validateValue(Schema schema, Object value) {
        validateValue(null, schema, value);
    }
@Test
    public void testValidateValueMismatchString() {
        // CharSequence is a similar type (supertype of String), but we restrict to String.
        CharBuffer cbuf = CharBuffer.wrap("abc");
        assertThrows(DataException.class,
            () -> ConnectSchema.validateValue(Schema.STRING_SCHEMA, cbuf));
    }