WaveletBasedConversationBlip firstReplyFirstBlip = firstReply.appendBlip();
final WaveletBasedConversationThread secondReply = firstBlip.addReplyThread(
BlipTestUtils.getBodyPosition(firstBlip) + 1);
WaveletBasedConversationBlip secondReplyFirstBlip = secondReply.appendBlip();
firstBlip.getContent().with(new Action() {
@Override
public <N, E extends N, T extends N> void exec(MutableDocument<N, E, T> doc) {
int location = locateAfterLineElement(doc);
Point<N> point = doc.locate(location);
E element = doc.createElement(point, "reply",
Collections.singletonMap("id", secondReply.getId()));
}
});
// Clear attributes on the manifest since we're not interested in testing those.
manifestDoc.with(new Action() {
@Override
public <N, E extends N, T extends N> void exec(MutableDocument<N, E, T> doc) {
E top = DocHelper.getFirstChildElement(doc, doc.getDocumentElement());
doc.setElementAttribute(top, "anchorBlip", null);
doc.setElementAttribute(top, "anchorWavelet", null);