### Question:
Range implements IOverline { public boolean contains(int value) { return low <= value && high >= value; } Range(Integer low, Integer high);  Range(Integer low, Integer high, boolean variable); boolean contains(int value); boolean contains(Range range); @Override boolean equals(Object object); @Override int hashCode(); @Override int getLowerBound(); int getUpperBound(); int getWidth(); @Override String toString(); void setLowerBound(int value); void setUpperBoundBound(int value); @Override int getNearestValue(int value);  }### Answer:
@Test public void testContainsInteger() { Range range = new Range(2, 7); Assert.assertTrue("2 is within", range.contains(2)); Assert.assertTrue("7 is within", range.contains(7)); Assert.assertTrue("1 is not within", !range.contains(1)); Assert.assertTrue("8 is not within", !range.contains(8)); }
@Test public void testContainsRange() { Range range = new Range(2, 7); Range inner = new Range(3, 4); Range outer = new Range(1, 4); Assert.assertTrue("Inner-Range: ", range.contains(inner)); Assert.assertTrue("Outer-Range: ", !range.contains(outer)); }