@Test
  public void testBasicRecordEstimatedSizes() {
    Record emptyRecord = new Record();
    Record exampleRecord = new DummyRecord();
    // these assertions have no strict meaning, they are just for demonstrating the current estimated size of a query
    // history record
    Assert.assertEquals(EMPTY_RECORD_ESTIMATED_SIZE_BYTES, emptyRecord.getEstimatedSizeInMemoryBytes());
    Assert.assertEquals(1526, exampleRecord.getEstimatedSizeInMemoryBytes());
  }
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