### Question:
GenericRecordBuilder extends RecordBuilderBase<Record> { @Override public Record build() { Record record; try { record = new GenericData.Record(schema()); } catch (Exception e) { throw new AvroRuntimeException(e); } for (Field field : fields()) { Object value; try { value = getWithDefault(field); } catch (IOException e) { throw new AvroRuntimeException(e); } if (value != null) { record.put(field.pos(), value); } } return record; } 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 buildWithoutSettingRequiredFields1() { new GenericRecordBuilder(recordSchema()).build(); }