@Test
public void testFixtDataDictionaryConfiguration() throws Exception {

    SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIXT11, "SENDER", "TARGET");
    setUpDefaultSettings(sessionID);
    settings.setBool(sessionID, Session.SETTING_USE_DATA_DICTIONARY, true);
    settings.setString(sessionID, Session.SETTING_TRANSPORT_DATA_DICTIONARY, "FIXT11.xml");
    settings.setString(sessionID, Session.SETTING_DEFAULT_APPL_VER_ID, "FIX.4.2");
    settings.setString(sessionID, Session.SETTING_APP_DATA_DICTIONARY, "FIX42.xml");
    settings.setString(sessionID, Session.SETTING_APP_DATA_DICTIONARY + "." + FixVersions.BEGINSTRING_FIX40, "FIX40.xml");
    Session session = factory.create(sessionID, settings);
    DataDictionaryProvider provider = session.getDataDictionaryProvider();
    assertThat(provider.getSessionDataDictionary(sessionID.getBeginString()),
            is(notNullValue()));
    assertThat(provider.getApplicationDataDictionary(new ApplVerID(ApplVerID.FIX42)),
            is(notNullValue()));
    assertThat(provider.getApplicationDataDictionary(new ApplVerID(ApplVerID.FIX40)),
            is(notNullValue()));
}