waveletData.removeParticipant(ROBOT);
// Delta1 event #1.
wavelet.addParticipant(ROBOT);
// Delta1 event #2.
wavelet.addParticipant(BOB);
HashedVersion endVersion = HashedVersion.unsigned(waveletData.getVersion());
List<WaveletOperation> ops1 = Lists.newArrayList(output.getOps());
TransformedWaveletDelta delta1 = makeDeltaFromCapturedOps(ALEX, ops1, endVersion, 0L);
output.clear();
// Delta2 event #1.
ObservableConversationView conversation = conversationUtil.buildConversation(wavelet);
ObservableConversationBlip newBlip = conversation.getRoot().getRootThread().appendBlip();
XmlStringBuilder builder = XmlStringBuilder.createText("some random content");
// Delta2 event #2.
LineContainers.appendToLastLine(newBlip.getContent(), builder);
// Delta2 event #3.
XmlStringBuilder.createText("some more random content by robot");
LineContainers.appendToLastLine(newBlip.getContent(), builder);
List<WaveletOperation> ops2 = Lists.newArrayList(output.getOps());
HashedVersion endVersion2 = HashedVersion.unsigned(waveletData.getVersion());
TransformedWaveletDelta delta2 = makeDeltaFromCapturedOps(ROBOT, ops2, endVersion2, 0L);
output.clear();
EventMessageBundle messages = generateEventsFromDeltas(delta1, delta2);
assertEquals("Expected two events", 2, messages.getEvents().size());