### Question:
PercentileBuckets { public static long[] asArray() { long[] values = new long[BUCKET_VALUES.length]; System.arraycopy(BUCKET_VALUES, 0, values, 0, BUCKET_VALUES.length); return values; } private  PercentileBuckets(); static long[] asArray(); static T[] map(Class<T> c, Function<Long, T> f); static long get(int i); static int length(); static int indexOf(long v); static long bucket(long v); static void percentiles(long[] counts, double[] pcts, double[] results); static double percentile(long[] counts, double p);  }### Answer:
@Test public void asArray() { long[] values = PercentileBuckets.asArray(); Assertions.assertEquals(PercentileBuckets.length(), values.length); for (int i = 0; i < values.length; ++i) { Assertions.assertEquals(PercentileBuckets.get(i), values[i]); } }