@Test
@SuppressWarnings("unchecked")
public void testReadMessageFromDataSource08() throws Exception {

    // 前処理
    DataSourceMessageSource_DataSourceMessageSourceStub02 ds = new DataSourceMessageSource_DataSourceMessageSourceStub02();
    DataSourceMessageSource_DBMessageResoueceDAOStub01 dbmr = new DataSourceMessageSource_DBMessageResoueceDAOStub01();
    Properties prop = new Properties();
    Map<Locale, MessageFormat> map = new HashMap<Locale, MessageFormat>();
    ds.cachedMergedProperties.put(Locale.JAPAN, prop);
    ds.cachedMessageFormats.put("foo", map);
    ds.dbMessageResourceDAO = dbmr;
    @SuppressWarnings("rawtypes")
    List list = new ArrayList();
    Object db1 = new Object();
    list.add(db1);
    dbmr.list = list;
    try {
        // テスト実施
        ds.readMessagesFromDataSource();
        fail();
    } catch (ClassCastException e) {
        // 判定
        assertTrue(ds.cachedMergedProperties.isEmpty());
        assertTrue(ds.cachedMessageFormats.isEmpty());
        assertTrue(dbmr.isRead);
        assertEquals(0, ds.list.size());
    }
}