@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 returnNullSessonDictionaryWithoutDiscovery() throws Exception {
    DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider(false);
    provider.addTransportDictionary(FixVersions.BEGINSTRING_FIX42, dictionaryForTest1);

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

    assertThat(dd, is(nullValue()));
  }
  @Test
  public void throwExceptionIfSessionDictionaryIsNotFound() throws Exception {
    DefaultDataDictionaryProvider provider = new DefaultDataDictionaryProvider();

    try {
      provider.getSessionDataDictionary("FIX44_Invalid_Test");
    } catch (QFJException e) {
      assertThat(e.getCause(), is(ConfigError.class));
    }
  }