### Question:
GenericRecordBuilder extends RecordBuilderBase<Record> { public GenericRecordBuilder set(String fieldName, Object value) { return set(schema().getField(fieldName), value); } GenericRecordBuilder(Schema schema);  GenericRecordBuilder(GenericRecordBuilder other);  GenericRecordBuilder(Record other); Object get(String fieldName); Object get(Field field); GenericRecordBuilder set(String fieldName, Object value); GenericRecordBuilder set(Field field, Object value); boolean has(String fieldName); boolean has(Field field); GenericRecordBuilder clear(String fieldName); GenericRecordBuilder clear(Field field); @Override Record build(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test(expected = org.apache.avro.AvroRuntimeException.class) public void attemptToSetNonNullableFieldToNull() { new GenericRecordBuilder(recordSchema()).set("intField", null); }