MessageUtil { public static String getMessageString(String key) { return getMessageString(key, new Object[]{}); }  static String getMessageString(String key); static String getMessageString(String key, Object... params); static String getMessageString(String key, Locale locale); static String getMessageString(String key, Locale locale, Object... params);  }
@Test public void getMessageStringTest() { assertEquals(MessageUtil.getMessageString("RestResponseErrorMsg_app_not_found_error"), "CWSCV3006E: The application is not found: {0}"); assertEquals(MessageUtil.getMessageString("RestResponseErrorMsg_app_not_found_error", Locale.GERMAN), "CWSCV3006E: Die Anwendung wurde nicht gefunden: {0}"); }