NodeList nestedBulletLists =
((CompositeTag) node[0]).searchFor(BulletList.class);
assertEquals("bullets in first list", 2, nestedBulletLists.size());
BulletList firstList = (BulletList) nestedBulletLists.elementAt(0);
Bullet firstBullet = (Bullet) firstList.childAt(0);
Node firstNodeInFirstBullet = firstBullet.childAt(0);
assertType(
"first child in bullet",
StringNode.class,
firstNodeInFirstBullet);
assertStringEquals(
"expected text",
"Energy supply\r\n" + " (Campbell) ",
firstNodeInFirstBullet.toPlainTextString());
}