### Question:
BucketFunctions { public static BucketFunction ageBiasOld(long max, TimeUnit unit) { return wrap(com.netflix.spectator.api.histogram.BucketFunctions.ageBiasOld(max, unit)); } private  BucketFunctions(); static BucketFunction age(long max, TimeUnit unit); static BucketFunction latency(long max, TimeUnit unit); static BucketFunction ageBiasOld(long max, TimeUnit unit); static BucketFunction latencyBiasSlow(long max, TimeUnit unit);  }### Answer:
@Test public void age60sBiasOld() { BucketFunction f = BucketFunctions.ageBiasOld(60, TimeUnit.SECONDS); Assertions.assertEquals("future", f.apply(TimeUnit.SECONDS.toNanos(-1))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(1))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(6))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(7))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(10))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(20))); Assertions.assertEquals("30s", f.apply(TimeUnit.SECONDS.toNanos(30))); Assertions.assertEquals("45s", f.apply(TimeUnit.SECONDS.toNanos(42))); Assertions.assertEquals("52s", f.apply(TimeUnit.SECONDS.toNanos(48))); Assertions.assertEquals("60s", f.apply(TimeUnit.SECONDS.toNanos(59))); Assertions.assertEquals("60s", f.apply(TimeUnit.SECONDS.toNanos(60))); Assertions.assertEquals("old", f.apply(TimeUnit.SECONDS.toNanos(61))); }