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);
docOpBuilder.elementStart("name2",
new AttributesImpl(CollectionUtils.immutableMap("key3", "val3", "key4", "val4")));
docOpBuilder.characters(TEXT + TEXT);
docOpBuilder.elementEnd();
docOpBuilder.characters(TEXT + TEXT + TEXT);
docOpBuilder.elementEnd();
docOpComplex = new CoreWaveletDocumentOperation(DOC_ID, docOpBuilder.finish());