SampledQuantile { public long getPercentile(int i) { return getPercentile(i, System.currentTimeMillis()); } SampledQuantile();  SampledQuantile(int maxSamples);  SampledQuantile(long windowLength, TimeUnit units);  SampledQuantile(int maxSamples, long windowLength, TimeUnit units);   SampledQuantile(int maxSamples, long windowLength, TimeUnit units, long now); long getMedian(); long getPercentile(int i); long getQuantile(int k, int q); int getNumSamples(); void addSample(long l);  }
@Test public void quantileWithNoSamplesShouldReturnZero() { assertEquals(0, impl.getPercentile(50)); }