public CompactionPriority getPriority() {
        // For backward compatibility
        // prevent null value when deserializing JSON that doesn't include the priority field
        return priority == null ? CompactionPriority.DEFAULT : priority;
    }
@Test
    public void testDeserializationOfOldJsonShouldSetPriorityToDefault() {
        PartitionStatistics statistics = GsonUtils.GSON.fromJson(OLD_JSON_WITHOUT_PRIORITY, PartitionStatistics.class);

        // Assert that the priority field is set to the default value as defined in the PartitionStatistics class
        assertEquals(PartitionStatistics.CompactionPriority.DEFAULT, statistics.getPriority());
    }