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