// 1. create a list of taxon labels and a tree:
String newName = testName + " test " + Math.random();
PhyloTree tree = new PhyloTree();
tree.setTitle(newName);
List<TaxonLabel> labels = new ArrayList<TaxonLabel>();
labels.add(new TaxonLabel("Heppiella_verticillata"));
labels.add(new TaxonLabel("Heppiella_ulmifolia"));
labels.add(new TaxonLabel("Heppiella_viscida"));
labels.add(new TaxonLabel("Heppiella_repens"));
labels.add(new TaxonLabel("Gloxinia"));
//String newick2 = "[&R] (Gloxinia,Gloxinia_1234,(Heppiella_repens,Heppiella_verticillata,Heppiella_viscida,Heppiella_ulmifolia))";
String newick = "[&R] (Gloxinia,(Heppiella_repens,Heppiella_verticillata,Heppiella_viscida,Heppiella_ulmifolia))";
// Parser mesqParser = new Parser(newick2);
// String aToken = mesqParser.getNextToken();
// int i =0;
// while (!TreebaseUtil.isEmpty(aToken)) {
// logger.debug(" " + i+ ": " + aToken);
// i++;
// aToken = mesqParser.getNextToken();
// }
//
// String newick = "[&R] (5,(4,1,3,2))";
// 2. test
MesquiteConverter converter = new MesquiteConverter();
converter.buildNodesFromNewick(tree, labels, newick);
//3. verify:
tree.updateNewickString();
logger.debug("treenode size=" + tree.getTreeNodesReadOnly().size() + "\n" + tree.getNewickString());
//assertTrue(condition);
if (logger.isInfoEnabled()) {
logger.info(testName + " - end "); //$NON-NLS-1$
}