RangeValue implements Value { @Override public String toString() { return min + " <-> " + max; } RangeValue();  RangeValue(double max);  RangeValue(double min, double max); void setMin(double min); void setMax(double max); @Override double getValue(); @Override double getMin(); @Override double getMax(); @Override String toString();  }
@Test public void testToString() { String expectedString = "0.0 <-> 1.0"; assertEquals("Output string is not as should be", expectedString, rangeVal.toString()); }