check("[\"string\", \"long\"]", new Utf8("a"), new Long(1), false);
}
@Test
public void testSpecificRecord() throws Exception {
TestRecord s1 = new TestRecord();
TestRecord s2 = new TestRecord();
s1.setName("foo");
s1.setKind(Kind.BAZ);
s1.setHash(new MD5(new byte[] {0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5}));
s2.setName("bar");
s2.setKind(Kind.BAR);
s2.setHash(new MD5(new byte[] {0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,6}));
Schema schema = SpecificData.get().getSchema(TestRecord.class);
check(schema, s1, s2, true, new SpecificDatumWriter<TestRecord>(schema),
SpecificData.get());
s2.setKind(Kind.BAZ);
check(schema, s1, s2, true, new SpecificDatumWriter<TestRecord>(schema),
SpecificData.get());
}