SparseTimeStat stat = new SparseTimeStat();
stat.setBucketIdProvider(bucketIdProvider);
stat.add(1, MILLISECONDS);
assertPreviousDistributionEmpty(stat);
++bucketIdProvider.id;
stat.add(new Duration(2, MILLISECONDS));
stat.add(3_000_000, NANOSECONDS);
assertPreviousDistribution(stat, 1, .001, .001, .001);
++bucketIdProvider.id;
assertPreviousDistribution(stat, 2, .002, .003, .005);
}