@Before
    public void setUp() {
        tree = new SpanTree("ballooo");
        root = (SpanList) tree.getRoot();

        a = new Span(1,1);
        b = new Span(2,1);
        c = new SpanList();
        d = new Span(3,1);
        e = new Span(4,1);

        c.add(d).add(e);
        root.add(a).add(b).add(c);

        dummyA = new Annotation(dummy);
        numberB = new Annotation(number);
        bananaC = new Annotation(banana);
        appleC = new Annotation(apple);
        grapeC = new Annotation(grape);
        dummyD = new Annotation(dummy);
        dummyE = new Annotation(dummy);

        tree.annotate(a, dummyA)
                .annotate(b, numberB)
                .annotate(c, bananaC)
                .annotate(c, appleC)
                .annotate(c, grapeC)
                .annotate(d, dummyD)
                .annotate(e, dummyE);
    }
Sets up a simple tree:
root:
a (dummyA), b (numberB), c (bananaC, appleC, grapeC)
c:
d (dummyD), e (dummyE)
document/src/test/java/com/yahoo/document/annotation/SpanTreeTestCase.java