### Question:
Percentiler { public int getPercentile (float value) { if (value < _min) { return 0; } else if (value > _max) { return 100; } else { return _percentile[toBucketIndex(value)]; } } Percentiler();  Percentiler(int min, int max);  Percentiler(byte[] data); void recordValue(float value); void recordValue(float value, boolean logNewMax); long getRecordedCount(); boolean isModified(); void clearModified(); int getPercentile(float value); float getRequiredScore(int percentile); int getMaxScore(); int getMinScore(); float[] getRequiredScores(); int[] getCounts(); void recomputePercentiles(); byte[] toBytes(); @Override String toString(); void dumpGnuPlot(PrintWriter out); void dump(PrintWriter out);  }### Answer:
@Test public void testGetPercentile () { Percentiler tiler = createGaussian(); assertEquals(0, tiler.getPercentile(tiler.getMinScore())); assertEquals(0, tiler.getPercentile(tiler.getMinScore()-1)); assertEquals(100, tiler.getPercentile(tiler.getMaxScore())); assertEquals(100, tiler.getPercentile(tiler.getMaxScore()+1)); }