assertSame(first, converter.findBlipParent(inlineReply));
assertSame(first, converter.findBlipParent(secondReply));
}
public void testFindBlipChildren() {
ConversationBlip first = conversation.getRootThread().getFirstBlip();
ConversationBlip second = conversation.getRootThread().appendBlip();
ConversationBlip reply = first.addReplyThread().appendBlip();
ConversationBlip secondReply = reply.getThread().appendBlip();
ConversationBlip inlineReply = first.addReplyThread(3).appendBlip();
EventDataConverterV22 converter = new EventDataConverterV22();
assertEquals(0, converter.findBlipChildren(second).size());
List<ConversationBlip> children = converter.findBlipChildren(first);
assertEquals(3, children.size());
assertEquals(inlineReply.getId(), children.get(0).getId());
assertEquals(reply.getId(), children.get(1).getId());
assertEquals(secondReply.getId(), children.get(2).getId());
}