### Question:
Range { public boolean contains(int value) { if (value >= start && (value <= end || end < 0)) { for (Range exclude : excludes) { if (exclude.contains(value)) { return false; } } return true; } return false; } Range();  Range(int start, int end);  Range(int start, int end, Range exclude);  Range(int start, int end, List<Range> excludes);  Range(Range range); boolean contains(int value); int[] getRangeValues(); int getStart(); @ConfigurationProperty(name = "start", label = "Start", description = "The start of the range") void setStart(int start); int getEnd(); @ConfigurationProperty(name = "end", label = "End", description = "The end of the range") void setEnd(int end); void addExclude(Range exclude); void removeExclude(Range exclude); List<Range> getExcludes(); @ConfigurationProperty(name = "excludes", label = "Excludes Ranges", description = "The ranges the exclude from this range", required = false) void setExcludes(List<Range> excludes); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testContains() { assertTrue(range.contains(2)); assertFalse(range.contains(7)); }