DataSourceMessageSource extends AbstractMessageSource implements
        InitializingBean { public void setDefaultLocale(Locale defaultLocale) { this.defaultLocale = defaultLocale; }  void setDefaultLocale(Locale defaultLocale); synchronized void setDbMessageResourceDAO(
            DBMessageResourceDAO dbMessageResourceDAO); @Override void afterPropertiesSet(); synchronized void reloadDataSourceMessage();  }
@Test public void testSetDefaultLocale01() throws Exception { DataSourceMessageSource ds = new DataSourceMessageSource(); ds.defaultLocale = null; Locale locale = Locale.JAPAN; ds.setDefaultLocale(locale); assertEquals(locale, ds.defaultLocale); }