private CoreWaveletData wavelet;
private CoreWaveletData originalWavelet;
public CoreWaveletOperationTest() {
DocOpBuffer docOpBuilder;
addOp = new CoreAddParticipant(PARTICIPANT_ID);
removeOp = new CoreRemoveParticipant(PARTICIPANT_ID);
noOp = CoreNoOp.INSTANCE;
docOpBuilder = new DocOpBuffer();
docOpBuilder.characters(TEXT);
docOpCharacters = new CoreWaveletDocumentOperation(DOC_ID, docOpBuilder.finish());
docOpBuilder = new DocOpBuffer();
docOpBuilder.deleteCharacters(TEXT);
docOpDeleteCharacters = new CoreWaveletDocumentOperation(DOC_ID, docOpBuilder.finish());
docOpBuilder = new DocOpBuffer();
docOpBuilder.retain(TEXT.length());
docOpBuilder.characters(TEXT);
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);
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());
}