### Question:
DefaultMessageResolver extends AbstractMessageResolver { @Override public void setLocale(Locale locale) { super.setLocale(locale); ResourceBundle.clearCache(); } private  DefaultMessageResolver(); synchronized static DefaultMessageResolver getInstance(); @Override void setLocale(Locale locale); Locale getLocale(); @Override boolean supportsLocale(Locale locale);  }### Answer:
@Test public void german(){ resolver.setLocale(Locale.GERMAN); assertEquals("Kommando", resolver.resolveGeneralMessage("message.general.command")); }
@Test public void english(){ resolver.setLocale(Locale.ENGLISH); assertEquals("Command", resolver.resolveGeneralMessage("message.general.command")); }
@Test public void notAvailable(){ Locale.setDefault(Locale.JAPANESE); resolver.setLocale(Locale.JAPANESE); assertEquals("Command", resolver.resolveGeneralMessage("message.general.command")); }