TreeLocation { @Override public String toString() { return toStringHelper(this).add("path", getPath()).toString(); }  @NotNull static TreeLocation create(@NotNull Tree tree); @NotNull static TreeLocation create(@NotNull Root root, @NotNull String path); @NotNull static TreeLocation create(@NotNull Root root); @NotNull abstract TreeLocation getParent(); abstract boolean exists(); @NotNull abstract String getName(); @NotNull abstract String getPath(); abstract boolean remove(); @NotNull TreeLocation getChild(String name); @Nullable Tree getTree(); @Nullable PropertyState getProperty(); @Override String toString();  }
@Test public void testToString() { TreeLocation location = TreeLocation.create(rootTree); assertEquals(TreeLocation.create(rootTree).toString(), location.toString()); }