@Test
    public void testStartsWith() {
        FieldPath fp1 = docType.buildFieldPath("struct");
        FieldPath fp2 = docType.buildFieldPath("struct.title");
        assertTrue(fp2.startsWith(fp1));
        assertTrue(fp2.startsWith(fp2));
        assertFalse(fp1.startsWith(fp2));
    }
Tests applying and serializing document updates.

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