void (int count) { DefaultMutableTreeNode node = node(count); makeDeepTreeFromNode(node, count); TreePath path = TreePathUtil.pathToTreeNode(node, TreeUtil::getUserObject); Object[] array = TreePathUtil.convertTreePathToArray(path); assertUserObjectPath(count, array); try { Assert.assertArrayEquals(array, node.getUserObjectPath()); } catch (StackOverflowError error) { System.out.println("StackOverflow - DefaultMutableTreeNode.getUserObjectPath: " + count); } }