@Test
public void testGetConfigurationFromECM() throws IOException {

    final InputStream expectedInputStream = mock(InputStream.class);
    final Storage storage = setupMockStorage(expectedInputStream);
    final InputStream configuration = new StoredOrDefaultConfigurationProvider(storage).getConfigurationStream();
    assertSame(expectedInputStream, configuration);
}