void () { init("class C { String s = \"<selection>ab\\\\cd<caret></selection>\"; }", JavaFileType.INSTANCE); executeAction(IdeActions.ACTION_EDITOR_TOGGLE_CASE); checkResultByText("class C { String s = \"<selection>AB\\\\CD<caret></selection>\"; }"); }