@Test(dataProvider = "validTrees")
public void parseValid(final String string, final TreeNode<String> tree) {

	final TreeNode<String> node = parse(string, Function.identity());
	final String nodeString = node.toParenthesesString();
	Assert.assertEquals(nodeString, string);
	Assert.assertEquals(node, tree);
}