code: public static void assertToken(String message, int expectedChannel, int expectedType, String expectedText, Token token)
      {
          assertEquals(message + " (channel check)", expectedChannel, token.getChannel());
          assertEquals(message + " (type check)", expectedType, token.getType());
          assertEquals(message + " (text check)", expectedText, token.getText());
      }
docs: Asserts properties of a token.
  
  @param message         the message to display on failure.
  @param expectedChannel the channel the token should appear on.
  @param expectedType    the expected type of the token.
  @param expectedText    the expected text of the token.
  @param token           the token to assert.