RepoPolicyTreePermission implements TreePermission { @NotNull TreePermission getChildPermission() { return this; } RepoPolicyTreePermission(@NotNull RepositoryPermission repoPermission); @NotNull @Override TreePermission getChildPermission(@NotNull String childName, @NotNull NodeState childState); @Override boolean canRead(); @Override boolean canRead(@NotNull PropertyState property); @Override boolean canReadAll(); @Override boolean canReadProperties(); @Override boolean isGranted(long permissions); @Override boolean isGranted(long permissions, @NotNull PropertyState property);  }
@Test public void testGetChildPermission() { TreePermission tp = getTreePermission(accessSession, REPO_POLICY_PATH); assertSame(tp, tp.getChildPermission("childName", EmptyNodeState.EMPTY_NODE)); }