void (int count) { TreePath path = null; for (int i = 0; i < count; i++) path = TreePathUtil.createTreePath(path, i); Assert.assertEquals(count, path.getPathCount()); Assert.assertEquals(count - 1, path.getLastPathComponent()); Object[] array = TreePathUtil.convertTreePathToArray(path); Assert.assertEquals(count, array.length); try { Assert.assertArrayEquals(array, path.getPath()); } catch (StackOverflowError error) { System.out.println("StackOverflow - getPath: " + count); } }