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

    // Even if some match the right type, this should fail if any mismatch. In this case, type erasure loses
    // the fact that the list is actually List<Object>, but we couldn't tell if only checking the first element
    ConnectSchema.validateValue(SchemaBuilder.array(Schema.INT32_SCHEMA).build(), Arrays.asList(1, 2, "c"));
}