code: public static void assertNodeNotExistByPath(final Session session, final String absPath) throws RepositoryException {
          try {
              session.getNode(absPath);
              fail("Node " + absPath + " does not exist");
          } catch (final PathNotFoundException e) { // NOSONAR
              // the exception is expected
          }
      }
docs: Asserts that a specific node with the given absolute path does not exist in the session
  
  @param session
  the session to search for the node
  @param absPath
  the absolute path to look for a node
  @throws RepositoryException
  if the repository access failed