.replace("##ANYRECORD_FULL_JSON", ANYRECORD_AVRO_SCHEMA_JSON)
.replace("##ANYRECORD_NAME", ANYRECORD_AVRO_FULL_NAME);
String fullAvroSchemaJson = AVRO_SCHEMA_JSON_TEMPLATE.replace("##FIELDS", avroSchemaFieldsJsonAfterVariableExpansion);
SchemaParser parser = TestUtil.schemaParserFromString(fullSchemaJson);
assertFalse(parser.hasError(), parser.errorMessage());
RecordDataSchema schema = (RecordDataSchema) parser.topLevelDataSchemas().get(2);
String avroJsonOutput = SchemaTranslator.dataToAvroSchemaJson(schema);
assertEquals(TestUtil.dataMapFromString(avroJsonOutput), TestUtil.dataMapFromString(fullAvroSchemaJson));
Schema avroSchema = Schema.parse(avroJsonOutput);