RBLL { public boolean containsInt(int elem) { return getIntervalContaining(elem) != null; }  @Override boolean equals(Object o); @Override int hashCode(); boolean containsInt(int elem); LibBasedNode getIntervalContaining(int elem); @Override String toString(); int size(); void clear(); void addInterval(int start, int end); static void main(String[] args);  }
@Test public void testContainsInt() throws Exception { assertFalse(rbll.containsInt(4)); rbll.addInterval(0, 2); assertFalse(rbll.containsInt(4)); assertTrue(rbll.containsInt(0)); assertTrue(rbll.containsInt(1)); assertTrue(rbll.containsInt(2)); }