### Question:
DoubleRange implements Comparable<DoubleRange> { public Double getHigh() { return high; } DoubleRange();  DoubleRange(Double low, Double high); Double getHigh(); void setHigh(Double high); Double getLow(); void setLow(Double low); @Override int compareTo(DoubleRange other); boolean contains(double d); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void getHigh_shouldReturnCorrectValueOfHighIfHighWasSetPreviously() { DoubleRange dr = new DoubleRange(0.0, 4.0); assertEquals(4.0, dr.getHigh(), 0); }
@Test public void getHigh_shouldReturnPositiveInfinityIfHighWasNotSetPreviously() { DoubleRange dr = new DoubleRange(0.0, null); assertEquals(Double.POSITIVE_INFINITY, dr.getHigh(), 0); }