### Question:
WKTTokenizer { protected int getNextChar() throws IOException { mPrevChar = mCurrChar; mCurrChar = mReader.read(); return mCurrChar; } WKTTokenizer(Reader reader);  WKTTokenizer(String s); int nextToken(); void pushBack(); int lineno(); void resetSyntax(); void wordChars(char c, char d); void wordChars(int i, int j); void whitespaceChars(int i, char c); void commentChar(char c); public int ttype; static final int TT_EOF; static final int TT_EOL; static final int TT_NUMBER; static final int TT_WORD; public String sval; }### Answer:
@Test public void itShouldReadNextChar() throws IOException { String s = "POINT (0 0)"; char[] ca = s.toCharArray(); WKTTokenizer wktt = new WKTTokenizer(s); int i = 0; for(; i < ca.length; i++) { char c = (char) wktt.getNextChar(); assertEquals(ca[i], c); } assertEquals(-1, wktt.getNextChar()); }