@Test
public void testRdef02() throws Exception {

    Xsd2AvroTranslator cob2Avro = new Xsd2AvroTranslator();
    Map<String, String> mapSchemas = cob2Avro.translate(new File(
            TEST_XSD_FOLDER, "rdef02.xsd"), "legstar.avro.test");
    assertEquals(1, mapSchemas.size());
    check(mapSchemas.get("rdef02"), "rdef02.avsc");
    checkSchema(mapSchemas.get("rdef02"), 3);
}