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

    Files.createDirectory(pageUnzippedPath.resolve(WIDGETS_FOLDER));
    when(widgetLoader.loadAllCustom(pageUnzippedPath.resolve(WIDGETS_FOLDER))).thenThrow(new IOException());
    pageImporter.doImport(anImport(pageImportPath));
}