@Test
  public void testExampleRecordIsFullySet() {
    Record record = new DummyRecord();
    for (Schema.Field field : Schema.Field.values()) {
      Assert.assertNotNull("Field should be filled with example value: " + field.getName(), record.get(field));
    }
  }
This test is crucial for ensuring that unit tests using DummyRecord have coverage on all fields.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/queryhistory/schema/TestQueryHistoryRecord.java