@Test
    public void testMoveAlternateAdvances() {
        AlternateSpanList asl1 = new AlternateSpanList();
        AlternateSpanList asl2 = new AlternateSpanList();
        Span s1 = new Span(1, 2);

        asl1.addChildren(new ArrayList<SpanNode>(), 50d);
        asl1.addChildren(new ArrayList<SpanNode>(), 50d);
        asl2.addChildren(new ArrayList<SpanNode>(), 50d);
        asl2.addChildren(new ArrayList<SpanNode>(), 50d);

        asl1.add(s1);
        assertEquals(1, asl1.children(0).size());
        assertEquals(0, asl1.children(1).size());
        assertEquals(0, asl1.children(2).size());
        assertEquals(0, asl2.children(0).size());
        assertEquals(0, asl2.children(1).size());
        assertEquals(0, asl2.children(2).size());
        asl1.move(s1, asl2, 2);
        assertEquals(0, asl1.children(0).size());
        assertEquals(0, asl1.children(1).size());
        assertEquals(0, asl1.children(2).size());
        assertEquals(0, asl2.children(0).size());
        assertEquals(0, asl2.children(1).size());
        assertEquals(1, asl2.children(2).size());
        asl2.move(2, 0, asl1, 1);
        assertEquals(0, asl1.children(0).size());
        assertEquals(1, asl1.children(1).size());
        assertEquals(0, asl1.children(2).size());
        assertEquals(0, asl2.children(0).size());
        assertEquals(0, asl2.children(1).size());
        assertEquals(0, asl2.children(2).size());
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
document/src/test/java/com/yahoo/document/annotation/SpanListTestCase.java