void (AbstractTreeStructure structure, String expected, int maxRowCount, @Nullable Comparator comparator, Object rootNode, @Nullable Queryable.PrintInfo printInfo) { checkGetParentConsistency(structure, rootNode); String actual = PlatformTestUtil.print(structure, rootNode, 0, comparator, maxRowCount, ' ', printInfo).toString(); Assert.assertEquals(expected.trim(), actual.trim()); }