code: public static void refuteToken(int refutedType, LexerResults lexerResults)
      {
          try
          {
              if (refutedType == lexerResults.getToken().getType())
              {
                  fail("scanned successfully as specified type");
              }
          }
          catch (AssertionError e)
          {
              if (checkMessage(e.getMessage()))
              {
                  // things are good
              }
              else
              {
                  throw e;
              }
          }
      }
docs: To "refute" a token means to assert that it cannot be of the specified
  type. This is useful, for example, when you want to assert that "x" will
  not be recognized as an integer. Eventually, it may be recognized as an
  identifier or some other token, but you just want to assert that it's
  definitely not an integer.
  <p/>
  <pre>
  refuteToken(MyLexer.INTEGER, myTester.scanInput(&quot;x&quot;));
  </pre>
  
  @param refutedType  the type the token should <em>not</em> be.
  @param lexerResults the result of scanning input with the tester.