PrivilegeUtil implements PrivilegeConstants { @NotNull public static Tree getPrivilegesTree(Root root) { return root.getTree(PRIVILEGES_PATH); } private  PrivilegeUtil(); @NotNull static Tree getPrivilegesTree(Root root); @NotNull static PrivilegeDefinition readDefinition(@NotNull Tree definitionTree);  }
@Test public void testGetPrivilegesTree() { Root root = when(mock(Root.class).getTree(PRIVILEGES_PATH)).thenReturn(mock(Tree.class)).getMock(); PrivilegeUtil.getPrivilegesTree(root); verify(root, times(1)).getTree(PRIVILEGES_PATH); }