public void test_error() throws Exception {
        JSONException error = null;
        try {
            SymbolTable symbolTable = new SymbolTable(512);

            JSONScanner lexer = new JSONScanner("\"nick \\a name\"");
            lexer.scanSymbol(symbolTable, '"');
            lexer.close();
        } catch (JSONException e) {
            error = e;
        }
        Assert.assertNotNull(error);
    }
test symbol

@author wenshao[szujobs@hotmail.com]
src/test/java/com/alibaba/json/bvt/parser/JSONScannerTest_symbol.java