void () { doTest(""" public class Foobar { private int foo; private int bar; @Override <caret> public String toString() { return "Foobar{" + "foo=" + foo + ", bar=" + bar + '}'; } public static class Nested { } } """, """ public class Foobar { private int foo; private int bar; @Override public String <caret>toString() { return "Foobar{" + "foo=" + foo + ", bar=" + bar + '}'; } public static class Nested { } } """, ReplacePolicy.getInstance()); }