### Question:
IntegerRangePredicate implements Predicate<Integer> { @Override public boolean test(Integer input) { if (input == null) { return false; } int intVal = input.intValue(); return myMin <= intVal && intVal <= myMax; } IntegerRangePredicate(int min, int max); @Override boolean test(Integer input);  }### Answer:
@Test public void test() { IntegerRangePredicate predicate = new IntegerRangePredicate(5, 7); Assert.assertFalse(predicate.test(Integer.valueOf(4))); Assert.assertTrue(predicate.test(Integer.valueOf(5))); Assert.assertTrue(predicate.test(Integer.valueOf(6))); Assert.assertTrue(predicate.test(Integer.valueOf(7))); Assert.assertFalse(predicate.test(Integer.valueOf(8))); }