ColumnSchema f2 = schema.getColumn(1);
Assert.assertEquals("m1", f2.name);
Assert.assertEquals(ColumnType.MAP, f2.type);
// test 2nd level schema;
Schema f1Schema = f1.schema;
ColumnSchema f11 = f1Schema.getColumn(0);
Assert.assertEquals("r", f11.name);
Assert.assertEquals(ColumnType.RECORD, f11.type);
Schema f2Schema = f2.schema;
ColumnSchema f21 = f2Schema.getColumn(0);
// Assert.assertEquals("", f21.name);
Assert.assertEquals(ColumnType.INT, f21.type);
// test 3rd level schema;
Schema f11Schema = f11.schema;
ColumnSchema f111 = f11Schema.getColumn(0);
Assert.assertEquals("r", f111.name);
Assert.assertEquals(ColumnType.RECORD, f111.type);
ColumnSchema f112 = f11Schema.getColumn(1);
Assert.assertEquals("f2", f112.name);
Assert.assertEquals(ColumnType.MAP, f112.type);
// test 4th level schema;
Schema f111Schema = f111.schema;
ColumnSchema f1111 = f111Schema.getColumn(0);
Assert.assertEquals("f1", f1111.name);
Assert.assertEquals(ColumnType.INT, f1111.type);
ColumnSchema f1112 = f111Schema.getColumn(1);
Assert.assertEquals("f2", f1112.name);
Assert.assertEquals(ColumnType.INT, f1112.type);
Schema f112Schema = f112.schema;
ColumnSchema f1121 = f112Schema.getColumn(0);
// Assert.assertEquals("", f1121.name);
Assert.assertEquals(ColumnType.BYTES, f1121.type);
}