@Test(dataProvider = "treeProvider")
public void test(BinaryTreeNode root, List<BinaryTreeNode> duplicates) {

    assertEquals(new FindDuplicateSubtrees().findDuplicateSubtrees(root).size(), duplicates.size());
}