FileSystemStorageStatistics extends StorageStatistics { @Override public Long getLong(String key) { return fetch(stats.getData(), key); } 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 testGetLong() { for (String key : STATISTICS_KEYS) { final long expectedStat = getStatisticsValue(key); final long storageStat = storageStatistics.getLong(key); LOG.info("{}: FileSystem.Statistics={}, FileSystemStorageStatistics={}", key, expectedStat, storageStat); assertEquals(expectedStat, storageStat); } }