@Test
  public void returnSessionDictionaryWithDiscovery() throws Exception {
    DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider();

    DataDictionary dd = provider.getSessionDataDictionary(FixVersions.BEGINSTRING_FIX40);

    assertThat(dd, is(notNullValue()));
    assertThat(dd.getVersion(), is(FixVersions.BEGINSTRING_FIX40));
  }
  @Test
  public void returnAppDictionaryWithDiscovery() throws Exception {
    DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider();
    provider.addApplicationDictionary(new ApplVerID(FIX44), null, dictionaryForTest1);

    DataDictionary dd = provider.getApplicationDataDictionary(new ApplVerID(FIX40), null);

    assertThat(dd, is(notNullValue()));
    assertThat(dd.getVersion(), is(FixVersions.BEGINSTRING_FIX40));
  }