@Test
    public void testGenerateSerializedFile() throws IOException {
        DocumentUpdate docUp = createDocumentUpdateForSerialization();

        GrowableByteBuffer buffer = new GrowableByteBuffer();
        docUp.serialize(DocumentSerializerFactory.createHead(buffer));

        int size = buffer.position();
        buffer.position(0);

        FileOutputStream fos = new FileOutputStream("src/tests/data/serialize-fieldpathupdate-java.dat");
        fos.write(buffer.array(), 0, size);
        fos.close();
    }
Tests applying and serializing document updates.

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