WeightedSnapshot extends AbstractSnapshot { @Override public int size() { return values.length; } WeightedSnapshot(Collection<WeightedSample> values); @Override double getValue(double quantile); @Override int size(); @Override long[] getValues(); @Override long getMax(); @Override long getMin(); @Override double getMean(); @Override double getStdDev(); @Override void dump(OutputStream output);  }
@Test public void hasASize() throws Exception { assertThat(snapshot.size()) .isEqualTo(5); }