@Test
public void testStoreStreamUpdatesExistingDocumentAndDoesNotTryToCreateNewOne() throws Exception {

    final ByteArrayInputStream input = new ByteArrayInputStream("hello".getBytes());
    makeConfigurationExisting("huch".getBytes());
    storage.save(input);
    final File configFile = new File(tempDir.getRoot(), "configuration.zip");
    assertTrue(configFile.exists());
    assertArrayEquals("hello".getBytes(), FileUtils.readFileToByteArray(configFile));
}