@Test
  public void testRecordSizeWithChangedPlan() {
    Record emptyRecord = new Record();
    // don't call getEstimatedSizeInMemoryBytes here, we know it's EMPTY_RECORD_ESTIMATED_SIZE_BYTES
    String plan = "asdfghjk";
    emptyRecord.setPlan(plan);
    // size is changed
    Assert.assertEquals(EMPTY_RECORD_ESTIMATED_SIZE_BYTES + plan.length() * Character.BYTES,
        emptyRecord.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