@Test
void testStartup_failedImport() throws IOException {

    setStandardMockAnswers();
    Mockito.when(contentPackImportConfig.isEnabled()).thenReturn(true);
    ContentPackImport contentPackImport = getContentPackImport();
    Mockito.doThrow(new RuntimeException("Error thrown by mock import service for test"))
            .when(importExportService)
            .performImportWithoutConfirmation(ArgumentMatchers.any());
    FileUtil.touch(testPack1);
    contentPackImport.startup(Collections.singletonList(contentPackDir));
    //File should have moved into the failed dir
    assertThat(Files.exists(testPack1)).isFalse();
    assertThat(Files.exists(contentPackDir.resolve(ContentPackImport.FAILED_DIR).resolve(testPack1.getFileName())))
            .isTrue();
}