// now iterate over all nodes in all trees in the focal tree block
for ( Network<?> nexTree : nexTreeBlock ) {
for ( Node nexNode : nexTree.getNodes() ) {
// check to see if there is a taxon; this may be null because we also visit internal nodes
OTU nexOTU = nexNode.getOTU();
if ( null != nexOTU ) {
// populate a set to pass into findEquivalentObject()
Set<TaxonLabel> tbTlset = new HashSet<TaxonLabel>();
tbTlset.addAll(tbTls.getTaxonLabelsReadOnly());
// this must not be null, though
TaxonLabel tbTl = (TaxonLabel)findEquivalentObject(nexOTU.getId(),"Tl",tbTlset);
Assert.assertNotNull("Have to find taxon "+nexNode.getId()+" for node "+nexNode.getId(), tbTl);
}
}
}
}