* Tests that events from a robot delta are filtered, before events from a
* human delta are received.
*/
public void testRobotSelfEventsFilteredBeforeHuman() throws Exception {
// Robot receives two deltas, it is participant in wavelet before deltas.
ObservableConversationView conversation = conversationUtil.buildConversation(wavelet);
// Delta1 start events: event #1.
ObservableConversationBlip rootBlip = conversation.getRoot().getRootThread().getFirstBlip();
// Delta1 event #2.
XmlStringBuilder builder = XmlStringBuilder.createText("some random content by robot");
LineContainers.appendToLastLine(rootBlip.getContent(), builder);
// Delta1 event #3.
wavelet.addParticipant(BOB);
List<WaveletOperation> ops1 = Lists.newArrayList(output.getOps());
HashedVersion endVersion = HashedVersion.unsigned(waveletData.getVersion());
TransformedWaveletDelta delta1 = makeDeltaFromCapturedOps(ROBOT, ops1, endVersion, 0L);
output.clear();
// Delta2 event #1.
conversation = conversationUtil.buildConversation(wavelet);
ObservableConversationBlip newBlip = conversation.getRoot().getRootThread().appendBlip();
// Delta2 event #2.
builder = XmlStringBuilder.createText("some random content by alex");
LineContainers.appendToLastLine(newBlip.getContent(), builder);
List<WaveletOperation> ops2 = Lists.newArrayList(output.getOps());