@Test
    public void assertContains() {
        populateSpanTree();
        assertTrue(span222.contains(span1));
        assertFalse(span1.contains(span222));
        assertTrue(span1.contains(span3));
        assertFalse(span33.contains(span111));
        assertTrue(span222.contains(span3));
        assertTrue(span111.contains(span2));
        assertTrue(span2.contains(span111));
        assertTrue(branch.contains(root));
        assertTrue(branch.contains(alternate2));
        assertTrue(root.contains(alternate2));
        assertFalse(alternate2.contains(span22));
    }
@author <a href="mailto:mpraveen@yahoo-inc.com">Praveen Mohan</a>

This test covers all possible scenarios in SpanNode.
document/src/test/java/com/yahoo/document/annotation/SpanNodeAdvTestCase.java