code: public static void refuteParse(SelectedRule rule, LexerResults lexerResults)
      {
          try
          {
              lexerResults.parseAs(rule);
              fail("parsed as " + rule);
          }
          catch (AssertionError e)
          {
              if (checkMessage(e.getMessage()))
              {
                  // things are good
              }
              else
              {
                  throw e;
              }
          }
      }
docs: To "refute" a parse means that the scan cannot be parsed with the
  specified rule.
  <p/>
  <pre>
  refuteParse(&quot;program&quot;, myTester.scanInput(&quot;5 / * 8&quot;));
  </pre>
  
  @param rule         the rule to apply from the parser.
  @param lexerResults the result of scanning input with the tester.