@Test
public void should_force_an_import() throws Exception {

    List<Widget> addedWidgets = wMocks.mockWidgetsAsAddedDependencies();
    List<Widget> overriddenWidgets = wMocks.mockWidgetsAsOverridenDependencies();
    Page page = pMocks.mockPageToBeImported();
    when(pageRepository.exists(page.getId())).thenReturn(false);
    Import anImport = new Import(pageImporter, "import-uuid", pageImportPath);
    ImportReport report = pageImporter.forceImport(anImport);
    assertThat(report.getDependencies().getAdded().get("widget")).isEqualTo(addedWidgets);
    assertThat(report.getDependencies().getOverwritten().get("widget")).isEqualTo(overriddenWidgets);
    assertThat(report.getElement()).isEqualTo(page);
    assertThat(report.getUUID()).isEqualTo(anImport.getUUID());
    assertThat(report.getStatus()).isEqualTo(ImportReport.Status.IMPORTED);
    verify(widgetRepository, never()).saveAll(overriddenWidgets);
    verify(pageRepository).updateLastUpdateAndSave(any(Page.class));
}