### Question:
Tokenizer { public int skipHint() { return untilCommentAndHintTerminateSign(HINT_BEGIN_SYMBOL_LENGTH); }  int skipWhitespace(); int skipComment(); int skipHint(); Token scanVariable(); Token scanIdentifier(); Token scanHexDecimal(); Token scanNumber(); Token scanChars(); Token scanSymbol();  }### Answer:
@Test public void assertSkipHint() { String comment = ""; String sql = "SELECT * FROM XXX_TABLE " + comment + "WHERE YY>2"; Tokenizer tokenizer = new Tokenizer(sql, dictionary, sql.indexOf("/")); int expected = sql.indexOf("/") + comment.length(); assertThat(tokenizer.skipHint(), is(expected)); }
@Test(expected = UnterminatedCharException.class) public void assertSkipHintUnterminatedCharException() { String comment = "/*--xyz \n WHERE XX=1 String sql = "SELECT * FROM XXX_TABLE " + comment; Tokenizer tokenizer = new Tokenizer(sql, dictionary, sql.indexOf("/")); tokenizer.skipHint(); }