@Test
public void testFilteredLoad_shouldReturnConfigurationWithCorrespindingMetaData() throws Exception {

    Map<String, String> metaData = new HashMap<String, String>();
    metaData.put(ContextId.META_KEY_ID, "context2");
    List<ConfigItem<Map<String, String>>> items = persistenceService.load(metaData);
    assertThat(items.size(), is(1));
    ConfigItem<?> loadedConfiguration = items.get(0);
    assertThat(loadedConfiguration.getMetaData().get(ContextId.META_KEY_ID), is("context2"));
}