private static Document copyBySerialization(Document orig) {
        return roundtripSerialize(orig, typeManagerForBookType());
    }
Tests vespa-documentgen-plugin

@author vegardh
documentgen-test/src/test/java/com/yahoo/vespa/config/DocumentGenPluginTest.java