DiscreteInterval { @Override public String toString() { return "[" + min + "," + max + "]"; } DiscreteInterval(long min, long max); long getMin(); long getMax(); long size(); DiscreteInterval plus(DiscreteInterval other); DiscreteInterval negate(); DiscreteInterval minus(DiscreteInterval other); boolean contains(DiscreteInterval other); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void canGenerateStringRep() { DiscreteInterval i1 = new DiscreteInterval(1,6); assertEquals("[1,6]", i1.toString()); }