MessageLocalization { public static String getComposedMessage(String key, int p1) { return getComposedMessage(key, String.valueOf(p1), null, null, null); } private  MessageLocalization(); static String getMessage(String key); static String getMessage(String key, boolean useDefaultLanguageIfMessageNotFound); static String getComposedMessage(String key, int p1); static String getComposedMessage(final String key, final Object... param); static boolean setLanguage(String language, String country); static void setMessages(Reader r);  }
@Test public void testBackslashes() throws Exception{ String testPath = "C:\\test\\file.txt"; String rslt = MessageLocalization.getComposedMessage("1.not.found.as.file.or.resource", testPath); Assert.assertTrue("Result doesn't contain the test path", rslt.contains(testPath)); }