@Test(expected = ServerImportException.class)
public void should_throw_server_import_exception_when_error_occurs_while_saving_files_in_repository() throws Exception {

    Page page = aPage().withId("aPage").build();
    when(pageLoader.load(pageUnzippedPath.resolve("page.json"))).thenReturn(page);
    doThrow(RepositoryException.class).when(pageRepository).updateLastUpdateAndSave(page);
    pageImporter.doImport(anImport(pageImportPath));
}