.getResourceAsStream("/TestRecord.avsc"));
@Test
public void testGoodSchema() {
AvroEntitySchema avroEntitySchema = parser.parseEntitySchema(entitySchema);
ColumnMapping descriptor = avroEntitySchema
.getColumnMappingDescriptor();
assertEquals(9, descriptor.getFieldMappings().size());
assertEquals(FieldMapping.MappingType.COLUMN, descriptor.getFieldMapping("field1")
.getMappingType());
assertEquals(FieldMapping.MappingType.KEY_AS_COLUMN, descriptor
.getFieldMapping("field4").getMappingType());
assertEquals(FieldMapping.MappingType.OCC_VERSION, descriptor.getFieldMapping("version")
.getMappingType());
AvroKeySchema avroKeySchema = parser.parseKeySchema(entitySchema);
assertEquals(Type.STRING, avroKeySchema.getAvroSchema()
.getField("keyPart1_copy").schema().getType());