### Question:
Utils { public static String replaceCRLFWithUnderscore(String value) { return value.replace('\n', '_').replace('\r', '_'); }  static String toSHA(String input); static String toSHA(byte[] input); static boolean isEmpty(String value); static String replaceCRLFWithUnderscore(String value);  }### Answer:
@Test public void shouldReplaceCRWithUnderscore() { Assert.assertEquals("hello_world", Utils.replaceCRLFWithUnderscore("hello\rworld")); }
@Test public void shouldReplaceLFWithUnderscore() { Assert.assertEquals("hello_world", Utils.replaceCRLFWithUnderscore("hello\nworld")); }
@Test public void shouldReplaceCRLFWithUnderscore() { Assert.assertEquals("hello__world", Utils.replaceCRLFWithUnderscore("hello\r\nworld")); }