public static RecordBuilder<Schema> record(String name) {
    return builder().record(name);
  }
@Test
  void fields() {
    Schema rec = SchemaBuilder.record("Rec").fields().name("documented").doc("documented").type().nullType().noDefault()
        .name("ascending").orderAscending().type().booleanType().noDefault().name("descending").orderDescending().type()
        .floatType().noDefault().name("ignored").orderIgnore().type().doubleType().noDefault().name("aliased")
        .aliases("anAlias").type().stringType().noDefault().endRecord();
    assertEquals("documented", rec.getField("documented").doc());
    assertEquals(Order.ASCENDING, rec.getField("ascending").order());
    assertEquals(Order.DESCENDING, rec.getField("descending").order());
    assertEquals(Order.IGNORE, rec.getField("ignored").order());
    assertTrue(rec.getField("aliased").aliases().contains("anAlias"));
  }