@Test
public void testLoadConfiguration() throws Exception {

    final Document cmisObject = Mockito.mock(Document.class);
    final ContentStream contentStream = mock(ContentStream.class);
    when(cmisObject.getContentStream()).thenReturn(contentStream);
    when(contentStream.getStream()).thenReturn(new ByteArrayInputStream("test".getBytes()));
    makeConfigurationExisting(cmisObject);
    assertArrayEquals("test".getBytes(), IOUtils.toByteArray(storage.load()));
}