@Test
public void testGetMessageFormat04() throws Exception {

    // 前処理
    DataSourceMessageSource_DataSourceMessageSourceStub18 ds = new DataSourceMessageSource_DataSourceMessageSourceStub18();
    String code = "code01";
    Locale locale = new Locale("ja", "JP", "");
    ds.cachedMessageFormats.put(code, null);
    MessageFormat mf = new MessageFormat("");
    ds.messageFormat = mf;
    ds.cachedMessageFormats.clear();
    // テスト実施
    MessageFormat result = ds.getMessageFormat(code, locale);
    // 判定
    assertSame(locale, ds.locale);
    assertSame("テストメッセージ０１", ds.msg);
    assertSame(mf, result);
    assertEquals(1, ds.cachedMessageFormats.size());
    Map<Locale, MessageFormat> hm = ds.cachedMessageFormats.get(code);
    assertSame(mf, hm.get(locale));
    assertEquals(1, ds.cachedMessageFormats.size());
    assertTrue(ds.isRead_A1);
}