AuthorizableImpl implements Authorizable, UserConstants { @NotNull Tree getTree() { if (tree.exists()) { return tree; } else { throw new IllegalStateException("Authorizable " + id + ": underlying tree has been disconnected."); } } AuthorizableImpl(@NotNull String id, @NotNull Tree tree,
                     @NotNull UserManagerImpl userManager); @NotNull @Override String getID(); @NotNull @Override Iterator<Group> declaredMemberOf(); @NotNull @Override Iterator<Group> memberOf(); @Override void remove(); @NotNull @Override Iterator<String> getPropertyNames(); @NotNull @Override Iterator<String> getPropertyNames(@NotNull String relPath); @Override boolean hasProperty(@NotNull String relPath); @Nullable @Override Value[] getProperty(@NotNull String relPath); @Override void setProperty(@NotNull String relPath, @Nullable Value value); @Override void setProperty(@NotNull String relPath, @Nullable Value[] values); @Override boolean removeProperty(@NotNull String relPath); @NotNull @Override String getPath(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetTree() { Tree t = root.getTree(authorizable.getPath()); assertEquals(t.getPath(), authorizable.getTree().getPath()); }