final long stringUID = schemaTable.getOrCreateSchemaId(STRING_SCHEMA);
final long intUID = schemaTable.getOrCreateSchemaId(INT_SCHEMA);
final String stringJSON = STRING_SCHEMA.toString();
final String intJSON = INT_SCHEMA.toString();
final AvroSchema stringUIDAS = AvroSchema.newBuilder().setUid(stringUID).build();
final AvroSchema stringJSONAS = AvroSchema.newBuilder().setJson(stringJSON).build();
final AvroSchema intUIDAS = AvroSchema.newBuilder().setUid(intUID).build();
final AvroSchema intJSONAS = AvroSchema.newBuilder().setJson(intJSON).build();
assertTrue(AvroUtils.avroSchemaEquals(schemaTable, stringUIDAS, stringUIDAS));
assertTrue(AvroUtils.avroSchemaEquals(schemaTable, stringUIDAS, stringJSONAS));
assertTrue(AvroUtils.avroSchemaEquals(schemaTable, stringJSONAS, stringUIDAS));
assertTrue(AvroUtils.avroSchemaEquals(schemaTable, intUIDAS, intUIDAS));