void () { doTest(""" class Info { public String name; public boolean isSource; public boolean isSource() { return isSource; } public String getName() { return name; } @Override public final String toString() { return String.format("%s%s port", getName(), isSource() ? " source" : /*_Replace 'String.format()' with concatenation*/" target"); } }""", """ class Info { public String name; public boolean isSource; public boolean isSource() { return isSource; } public String getName() { return name; } @Override public final String toString() { return getName() + (isSource() ? " source" : " target") + " port"; } }"""); }