@Test
  public void testAggregatedAccountStorageStats() throws Exception {
    Map<Short, Map<Short, ContainerStorageStats>> storageStatsMap =
        StorageStatsUtilTest.generateRandomAggregatedAccountStorageStats((short) 10, 10, 5, 10000L, 2, 10);
    String serialized = objectMapper.writeValueAsString(storageStatsMap);
    AggregatedAccountStorageStats deserialized =
        objectMapper.readValue(serialized, AggregatedAccountStorageStats.class);
    Assert.assertEquals(storageStatsMap, deserialized.getStorageStats());

    serialized = objectMapper.writeValueAsString(deserialized);
    deserialized = objectMapper.readValue(serialized, AggregatedAccountStorageStats.class);
    Assert.assertEquals(storageStatsMap, deserialized.getStorageStats());
  }
Test methods in {@link HostAccountStorageStats}.
@throws Exception
ambry-api/src/test/java/com/github/ambry/server/StorageStatsTest.java