### Question:
Utils { public static String makeString(String s) { if (s == null) { return null; } return escapeDoubleQuotesAndBackSlashes(s).replaceAll("\n", "\\\\n").replaceAll("\r", ""); }  static String escapeDoubleQuotesAndBackSlashes(final String line); static byte[] getBytes(InputStream in); static byte[] getBytes(final InputStream in, final int contentLength); static byte[] readURL(final String url); static byte[] readURLThrowException(final String url); static byte[] readURL(final String url, boolean printExceptions); static byte[] readCachedFile(final File file); static byte[] readCachedFileIfExists(final String fileName); static byte[] readCachedFile(final String fileName); static byte[] readFile(final String fileName); static String getString(byte[] bytes); static byte[] readFile(final File file); static void writeFile(String str, String filePath, boolean overWrite); static void createNewFile(String file); static void createNewFile(File file); static boolean deleteFile(String filePath); static String readFileAsString(final File file); static String readFileAsString(final String fileName); static synchronized String createLogFileName(final String scriptFileName); static Date getDateFromFileName(String fileName); static File getRelativeFile(File parent, final String s2); static String concatPaths(final String s1, final String s2, final String s3); static String concatPaths(final String s1, final String s2); static String concatPaths(final String s1, final String s2, boolean returnRelative); static ArrayList<String> getTokens(final String s); static boolean isBlankOrNull(final String s); @SuppressWarnings("unchecked") static String substitute(final String content, final Map substitutions); static String makeString(String s); static String escapeQuotesForXML(final String input); static String escapeQuotes(final String input); static String addChildSessionId(String sessionId); static String stripChildSessionId(final String sessionId); static void deleteDir(final File dir); static String makePathOSIndependent(final String path); static boolean isWindows(); static boolean isWindowsNT(); static boolean isWindows95(); static String[] getCommandTokens(String commandString); static String getStackTraceString(Exception e); static String getStackTraceString(Exception e, boolean forHTML); static String getAbsolutePath(String fileStr); static String getAbsolutePath(File file); static String getUUID(); static String generateId(); static String toJSON(String[] list); static String executeCommand(final String command, boolean isSync, long timeout); static String executeCommand(String[] command); static Process executeAndGetProcess(String[] command); static String encode(String s); static void sleep(long time); static String escapeForXML(String message); static byte[] getBytes(String dataStr); static boolean isSahiTestFile(String testName); static HashMap<String, String> parseCLInput(String[] args); static String expandSystemProperties(String cmd); static String getOSFamily(); static String replaceLocalhostWithMachineName(String url); final static public SimpleDateFormat COMMON_DATE_FORMAT; static int BUFFER_SIZE; }### Answer:
@Test public void testMakeString() { assertEquals("a\\nb", Utils.makeString("a\nb")); }