void () { final RegExpLexer lexer = new RegExpLexer(EnumSet.noneOf(RegExpCapability.class)); doTest("^\\^[^^]", """ CARET ('^') ESC_CHARACTER ('\\^') CLASS_BEGIN ('[') CARET ('^') CHARACTER ('^') CLASS_END (']')""", lexer); }