void () { String source = "public class Peepers {\n public long serialVersionUID = 1L; \n}"; String search = "long serialVersionUID = $value$;"; String replace = ""; String expectedResult = "public class Peepers { \n}"; assertEquals(expectedResult, replace(source, search, replace, true)); }