### Question:
Interval implements Comparable<Interval>, IntervalType<Interval>, PioSerializable { public boolean contains(final long value) { return value >= start && value < 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 public void testContains() { final int start = 10; final int end = 20; Interval a = new Interval(start, end); for (int i = start; i < end; i++) assertTrue(a.contains(i)); assertFalse(a.contains(start - 1)); assertFalse(a.contains(end)); }