docOpRetainAndCharacters = new CoreWaveletDocumentOperation(DOC_ID, docOpBuilder.finish());
docOpBuilder = new DocOpBuffer();
docOpBuilder.retain(TEXT.length());
docOpBuilder.deleteCharacters(TEXT);
docOpRetainAndDeleteCharacters = new CoreWaveletDocumentOperation(DOC_ID, docOpBuilder.finish());
docOpBuilder = new DocOpBuffer();
docOpBuilder.elementStart("name1",
new AttributesImpl(CollectionUtils.immutableMap("key1", "val1", "key2", "val2")));
docOpBuilder.characters(TEXT);