void verify(Queue<BlipView> blips, BlipView blip) {
assertEquals(blips.poll(), blip);
BlipMetaView meta = blip.getMeta();
AnchorView a = meta.getInlineAnchorAfter(null);
for (ThreadBuilder threadBuilder : anchored) {
assertNotNull(a);
threadBuilder.verify(blips, a.getThread());
a = meta.getInlineAnchorAfter(a);
}
assertNull(a);
int anchoredDefaults = 0; // empty default anchors.
a = blip.getDefaultAnchorAfter(null);
for (ThreadBuilder threadBuilder : unanchored) {
assertNotNull(a);
InlineThreadView thread = a.getThread();
while (thread == null) {
a = blip.getDefaultAnchorAfter(a);
thread = a.getThread();
assertNotNull(a);
anchoredDefaults++;
}
threadBuilder.verify(blips, thread);
a = blip.getDefaultAnchorAfter(a);
}
while (a != null) {
assertNull(a.getThread());
a = blip.getDefaultAnchorAfter(a);
anchoredDefaults++;
}
assertNull(a);
assertEquals(anchored.length, anchoredDefaults);