public static RecordBuilder<Schema> record(String name) {
    return builder().record(name);
  }
@Test
  void badDefault() {
    assertThrows(SchemaBuilderException.class, () -> {
      SchemaBuilder.record("r").fields().name("f").type(Schema.create(Schema.Type.INT)).withDefault(new Object())
          .endRecord();
    });
  }