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