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