### Question:
Ranges { public static Range range(final double minValue, final double maxValue) { if (minValue > maxValue) { throw new IllegalArgumentException("minValue should be less then or equal to maxValue (" + minValue+ ", " + maxValue + ")"); } return new Range(minValue, maxValue, false); }  static Range absRange(Range range); static Range range(final double minValue, final double maxValue); static Range sum(Range range1, Range range2); static Range aggregateRange(Range dataRange, Range aggregatedRange); static double overlap(Range range, Range otherRange);  }### Answer:
@Test public void range1() throws Exception { Range range = Ranges.range(0.0, 10.0); assertThat(range.getMinimum(), equalTo((Number) 0.0)); assertThat(range.getMaximum(), equalTo((Number) 10.0)); }
@Test(expected=IllegalArgumentException.class) public void range3() throws Exception { Range range = Ranges.range(10.0, 0.0); }