### Question:
Interval implements Comparable<Interval>, IntervalType<Interval>, PioSerializable { public Interval minus(final IntervalType<?> other) { if (!other.overlaps(this, Overlap.PARTIAL)) throw new IllegalArgumentException("Intervals do not overlap partially."); if (other.getStart() > start) return create(start, other.getStart()); return create(other.getEnd(), end); } Interval(long start, long end);  Interval(ParamSet params); Interval getInterval(); boolean contains(final long value); final boolean overlaps(final IntervalType<?> interval, final  Overlap overlap); boolean abuts(final IntervalType<?> interval); Interval plus(final IntervalType<?> other); Interval minus(final IntervalType<?> other); int compareTo(Interval o); @Override boolean equals(Object obj); boolean equals(long start, long end); @Override int hashCode(); @Override String toString(); long getEnd(); long getStart(); long getMiddlePoint(); long getLength(); Interval create(long start, long end); ParamSet getParamSet(PioFactory factory, String name);  }### Answer:
@Test @Ignore public void testMinus() { final int start = 10; final int end = 20; Interval a = new Interval(start, end); Interval b = a.minus(new Interval(15,25)); assertEquals(b, new Interval(10, 15)); }