private static void roundtripSerializeJsonAndMatch(String jsonDoc, String expectedJsonDoc) {
        jsonDoc = jsonDoc.replaceFirst("DOCUMENT_ID", DEFAULT_DOCUMENT_ID);
        expectedJsonDoc = expectedJsonDoc.replaceFirst("DOCUMENT_ID", DEFAULT_DOCUMENT_ID);
        DocumentUpdate update = jsonToDocumentUpdate(jsonDoc, DEFAULT_DOCUMENT_ID);
        DocumentUpdate roundtripUpdate = roundtripSerialize(update);
        assertJsonEquals(expectedJsonDoc, documentUpdateToJson(roundtripUpdate));
    }
Tests roundtrip serialization (JSON -> DocumentUpdate -> Buffer -> DocumentUpdate -> JSON) of document updates.

@author Vegard Sjonfjell
document/src/test/java/com/yahoo/document/json/DocumentUpdateJsonSerializerTest.java