@Test
public void testRemove() {

    SequenceSet set = new SequenceSet();
    set.add(new Sequence(0, 100));
    assertEquals(101, set.rangeSize());
    assertEquals(1, set.size());
    assertFalse(set.remove(101));
    assertTrue(set.remove(50));
    assertEquals(2, set.size());
    assertEquals(100, set.rangeSize());
    assertFalse(set.remove(101));
    set.remove(0);
    assertEquals(2, set.size());
    assertEquals(99, set.rangeSize());
    set.remove(100);
    assertEquals(2, set.size());
    assertEquals(98, set.rangeSize());
    set.remove(10);
    assertEquals(3, set.size());
    assertEquals(97, set.rangeSize());
}