void () { doTest(""" class FooImpl extends Foo { <caret> } abstract class Foo { public abstract toString(); } """, """ class FooImpl extends Foo { @Override public String toString() { return "FooImpl{}"; } } abstract class Foo { public abstract toString(); } """, ReplacePolicy.getInstance(), findTemplate("String concat (+) and super.toString()")); }