docs: public int expect(String pattern, Closure handler) throws MalformedPatternException, Exception {
          logger.trace("Searching for '" + pattern + "' in the reader stream and executing Closure " + handler + " if found");
          PatternPair match = new GlobMatch(pattern, handler);
          List<Match> list = new ArrayList<>();
          list.add(match);
          return expect(list);
      }