OpenPermissionProvider implements PermissionProvider { @NotNull @Override public Set<String> getPrivileges(@Nullable Tree tree) { return Collections.singleton(PrivilegeConstants.JCR_ALL); } private  OpenPermissionProvider(); static PermissionProvider getInstance(); @Override void refresh(); @NotNull @Override Set<String> getPrivileges(@Nullable Tree tree); @Override boolean hasPrivileges(@Nullable Tree tree, @NotNull String... privilegeNames); @NotNull @Override RepositoryPermission getRepositoryPermission(); @NotNull @Override TreePermission getTreePermission(@NotNull Tree tree, @NotNull TreePermission parentPermission); @Override boolean isGranted(@NotNull Tree tree, @Nullable PropertyState property, long permissions); @Override boolean isGranted(@NotNull String oakPath, @NotNull String jcrActions);  }
@Test public void testGetPrivileges() { Set<String> privs = openProvider.getPrivileges(tree); assertFalse(privs.isEmpty()); assertTrue(privs.contains(PrivilegeConstants.JCR_ALL)); }