void () { doTest("Flip 'equals()'", """ class X { void test(String s) { System.out.println(s.equals("<caret>foo")); } }""", """ class X { void test(String s) { System.out.println("foo".equals(s)); } }""" ); }