@Test
public void testResolveCode04() throws Exception {

    // 前処理
    DataSourceMessageSource ds = new DataSourceMessageSource();
    String code = "code01";
    Locale locale = new Locale("ja", "JP", "kansai");
    Locale defaultLocale = new Locale("en", "", "");
    ds.defaultLocale = defaultLocale;
    // cachedMergedProperties生成
    Map<Locale, MessageFormat> map = new HashMap<Locale, MessageFormat>();
    Locale formatlocale = new Locale("en", "US", "NY");
    MessageFormat mFormat = new MessageFormat("");
    mFormat.setLocale(formatlocale);
    mFormat.applyPattern("テストメッセージ０１");
    map.put(formatlocale, mFormat);
    ds.cachedMessageFormats.put(code, map);
    // テスト実施
    MessageFormat mfreturn = ds.resolveCode(code, locale);
    // 判定
    assertNull(mfreturn);
}