void () { String in = """ class X { private final int i = 1; }"""; String what = "int '_v;"; String by = "long $v$;"; assertEquals("initializer should remain", """ class X { private final long i=1; }""", replace(in, what, by, true)); }