### Question:
Strings { public static String getMessage(String key) { try { return MESSAGES_BUNDLE.getString(key); } catch (MissingResourceException e) { return new StringBuilder(UNFOUND_PROP_VALUE_STRING).append(key).append(UNFOUND_PROP_VALUE_STRING).toString(); } } private  Strings(); static String getMessage(String key); static String getMessage(Class<?> clazz, String key); static String[] getMessages(Class<?> clazz, String key); static boolean wasNotFound(String lesson);  }### Answer:
@Test public void testFallsBackToEnglishXmlWhenNoXmlForLocaleIsFound_eventIsLogged(){ Locale.setDefault(Locale.CHINA); assertLogged(Strings.class.getName(), new RBSensitiveLoggerExpectation(){ @Override protected void logCalled(LogRecord record) { assertEquals(Level.INFO, record.getLevel()); String expectation0 = "Your default language is not supported yet. "; String msg = record.getMessage(); assertTrue(msg.startsWith(expectation0)); assertTrue(msg.contains("messages_zh.properties")); } }); }