public static RecordBuilder<Schema> record(String name) {
    return builder().record(name);
  }
@Test
  void validateDefaultsEnabled() {
    assertThrows(AvroRuntimeException.class, () -> {
      try {
        SchemaBuilder.record("ValidationRecord").fields().name("IntegerField").type("int").withDefault("Invalid")
            .endRecord();
      } catch (AvroRuntimeException e) {
        assertEquals("Invalid default for field IntegerField: \"Invalid\" not a \"int\"", e.getMessage(),
            "Default behavior is to raise an exception due to record having an invalid default");
        throw e;
      }
    });
  }