@Test
public void testEquals() throws Exception {

    RBLL rbll2 = new RBLL();
    RBLL rbll3 = new RBLL();
    rbll.addInterval(0, 6);
    rbll2.addInterval(0, 6);
    assertEquals(rbll, rbll2);
    assertThat(rbll, not(equalTo(rbll3)));
    rbll.addInterval(10, 16);
    rbll2.addInterval(10, 16);
    assertEquals(rbll, rbll2);
    assertThat(rbll, not(equalTo(rbll3)));
    rbll.addInterval(4, 16);
    rbll2.addInterval(4, 16);
    assertEquals(rbll, rbll2);
    assertThat(rbll, not(equalTo(rbll3)));
}