@Test
/** Test nesting of specific data within generic. */
public void testSpecificWithinGeneric() throws Exception {
// define a record with a field that's a generated TestRecord
Schema schema = Schema.createRecord("Foo", "", "x.y.z", false);
List<Schema.Field> fields = new ArrayList<Schema.Field>();
fields.add(new Schema.Field("f", TestRecord.SCHEMA$, "", null));
schema.setFields(fields);
// create a generic instance of this record
TestRecord nested = new TestRecord();
nested.name = new Utf8("foo");
nested.kind = Kind.BAR;