public static String dataToAvroSchemaJson(DataSchema dataSchema)
  {
    return dataToAvroSchemaJson(dataSchema, new DataToAvroSchemaTranslationOptions());
  }
@Test(dataProvider = "toAvroSchemaDataTestTypeRefAnnotationPropagationUnionWithAlias")
 public void testToAvroSchemaTestTypeRefAnnotationPropagationUnionWithAlias(String schemaBeforeTranslation,
                                                               String expectedAvroSchemaAsString) throws Exception
 {
   DataSchema schema = TestUtil.dataSchemaFromPdlString(schemaBeforeTranslation);
   DataToAvroSchemaTranslationOptions transOptions = new DataToAvroSchemaTranslationOptions(OptionalDefaultMode.TRANSLATE_DEFAULT, JsonBuilder.Pretty.SPACES, EmbedSchemaMode.NONE);
   transOptions.setTyperefPropertiesExcludeSet(new HashSet<>(Arrays.asList("validate", "java")));

   String avroSchemaText = SchemaTranslator.dataToAvroSchemaJson(schema, transOptions);
   DataMap avroSchemaAsDataMap = TestUtil.dataMapFromString(avroSchemaText);
   DataMap fieldsPropertiesMap = TestUtil.dataMapFromString(expectedAvroSchemaAsString);
   assertEquals(avroSchemaAsDataMap, fieldsPropertiesMap);
 }