@Test
    public void testSerializeDeserialize() {
        {
            SpanList spanList = new SpanList();
            serializeAndAssert(spanList);
        }
        {
            SpanList spanList = new SpanList();
            Span s1 = new Span(1, 2);
            Span s2 = new Span(3, 4);
            Span s3 = new Span(4, 5);
            spanList.add(s1).add(s2).add(s3);
            SpanList s4 = new SpanList();
            Span s5 = new Span(7, 8);
            Span s6 = new Span(8, 9);
            s4.add(s5).add(s6);
            spanList.add(s4);

            serializeAndAssert(spanList);
        }
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
document/src/test/java/com/yahoo/document/annotation/SpanListTestCase.java