@Test(expected = DataException.class)
public void testValidateValueMismatchString() {

    // CharSequence is a similar type (supertype of String), but we restrict to String.
    CharBuffer cbuf = CharBuffer.wrap("abc");
    ConnectSchema.validateValue(Schema.STRING_SCHEMA, cbuf);
}