public void remove(SequenceSet sequenceSet) {
        Sequence node = sequenceSet.getHead();

        while (node != null) {
            remove(node);
            node = node.getNext();
        }
    }
@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());

        SequenceSet toRemove = new SequenceSet();
        toRemove.add(new Sequence(0, 100));

        set.remove(toRemove);
        assertEquals(0, set.size());
        assertEquals(0, set.rangeSize());

    }