### Question:
IsWithinRange implements Predicate<A> { public final boolean test(A o) { return o.compareTo(min) >= 0 && o.compareTo(max) <= 0; } IsWithinRange(A min, A max); final boolean test(A o); @Override final boolean equals(Object o); @Override int hashCode(); @Override String toString(); static IsWithinRange<A> instance(A min, A max);  }### Answer:
@Test public void testTest() throws Exception { IsWithinRange<Integer> p = new IsWithinRange<Integer>(Integer.valueOf(5), Integer.valueOf(10)); assertTrue(p.test(Integer.valueOf(5))); assertTrue(p.test(Integer.valueOf(6))); assertTrue(p.test(Integer.valueOf(7))); assertTrue(p.test(Integer.valueOf(8))); assertTrue(p.test(Integer.valueOf(9))); assertTrue(p.test(Integer.valueOf(10))); assertTrue(!p.test(Integer.valueOf(4))); assertTrue(!p.test(Integer.valueOf(11))); }