private void assertAggregatedRawStatsForAccountStorageStats(Map<Short, Map<Short, ContainerStorageStats>> raw,
      Map<Short, Map<Short, ContainerStorageStats>> expected, int nodeCount) {
    Assert.assertEquals(expected.size(), raw.size());
    for (Map.Entry<Short, Map<Short, ContainerStorageStats>> rawEntry : raw.entrySet()) {
      short accountId = rawEntry.getKey();
      Assert.assertTrue(expected.containsKey(accountId));
      Assert.assertEquals(expected.get(accountId).size(), rawEntry.getValue().size());
      for (Map.Entry<Short, ContainerStorageStats> rawContainerEntry : rawEntry.getValue().entrySet()) {
        short containerId = rawContainerEntry.getKey();
        Assert.assertTrue(expected.get(accountId).containsKey(containerId));
        ContainerStorageStats expectedStats = expected.get(accountId).get(containerId);
        ContainerStorageStats rawStats = rawContainerEntry.getValue();
        Assert.assertEquals(expectedStats.getLogicalStorageUsage() * nodeCount, rawStats.getLogicalStorageUsage());
        Assert.assertEquals(expectedStats.getPhysicalStorageUsage() * nodeCount, rawStats.getPhysicalStorageUsage());
        Assert.assertEquals(expectedStats.getNumberOfBlobs() * nodeCount, rawStats.getNumberOfBlobs());
      }
    }
  }
Test {@link MySqlClusterAggregator#aggregateHostAccountStorageStatsWrappers} with one node having earlier timestamp
but larger storage stats data. Larger data should be used when aggregating valid storage stats.
@throws Exception
ambry-clustermap/src/test/java/com/github/ambry/clustermap/MySqlClusterAggregatorTest.java