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