@Test
public void testStoreStreamCreatesNewDocument() throws Exception {

    final ByteArrayInputStream input = new ByteArrayInputStream("hello".getBytes());
    makeConfigurationNotExisting();
    storage.save(input);
    final Map<String, String> properties = new HashMap<String, String>();
    properties.put("cmis:objectTypeId", "cmis:document");
    properties.put("cmis:name", "configuration.zip");
    verify(root).createDocument(eq(properties), any(ContentStream.class), eq(VersioningState.NONE));
}