@Test
public void testCustomAnyRecordSchema()
{
RecordDataSchema schemaFromInstance = (new AnyRecord()).schema();
DataSchema schemaFromClass = DataTemplateUtil.getSchema(AnyRecord.class);
assertSame(schemaFromClass, schemaFromInstance);
CustomAnyRecord custom = new CustomAnyRecord();
RecordDataSchema customSchemaFromInstance = custom.schema();
DataSchema customSchemaFromClass = DataTemplateUtil.getSchema(CustomAnyRecord.class);
assertSame(customSchemaFromClass, customSchemaFromInstance);
assertEquals(customSchemaFromClass, schemaFromClass);
}