@Test
    public void testSimple1() {
        StringFieldValue text = new StringFieldValue("<html><head><title>Diary</title></head><body>I live in San Francisco</body></html>");
                                                    //012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
        SpanList root = new SpanList();
        root.add(new Span(0, 19))
                .add(new Span(19, 5))
                .add(new Span(24, 21))
                .add(new Span(45, 23))
                .add(new Span(68, 14));

        SpanTree tree = new SpanTree("html", root);
        text.setSpanTree(tree);
    }
Contains code snippets that are used in the documentation. Not really a test case.

@author Einar M R Rosenvinge
document/src/test/java/com/yahoo/document/annotation/DocTestCase.java