public GenericRecordBuilder set(String fieldName, Object value) {
    return set(schema().getField(fieldName), value);
  }
@Test
  void attemptToSetNonNullableFieldToNull() {
    assertThrows(org.apache.avro.AvroRuntimeException.class, () -> {
      new GenericRecordBuilder(recordSchema()).set("intField", null);
    });
  }