FileSystemStorageStatistics extends StorageStatistics { @Override public Iterator<LongStatistic> getLongStatistics() { return new LongStatisticIterator(stats.getData()); } FileSystemStorageStatistics(String name, FileSystem.Statistics stats); @Override String getScheme(); @Override Iterator<LongStatistic> getLongStatistics(); @Override Long getLong(String key); @Override boolean isTracked(String key); @Override void reset();  }
@Test public void testGetLongStatistics() { Iterator<LongStatistic> iter = storageStatistics.getLongStatistics(); while (iter.hasNext()) { final LongStatistic longStat = iter.next(); assertNotNull(longStat); final long expectedStat = getStatisticsValue(longStat.getName()); LOG.info("{}: FileSystem.Statistics={}, FileSystemStorageStatistics={}", longStat.getName(), expectedStat, longStat.getValue()); assertEquals(expectedStat, longStat.getValue()); } }