@Test
public void importToscaElementWithBadImageUri() throws IOException, ParsingException {

    Path csarFileForTesting = Paths.get(CSAR_OUTPUT_FOLDER.toString(), tmpArchiveNameWithError);
    // Zip the csarSourceFolder and write it to csarFileForTesting
    FileUtil.zip(PATH_TOSCA_BASE_TYPES_ERROR, csarFileForTesting);
    // Parse the archive for definitions
    ParsingResult<ArchiveRoot> result = parser.parse(csarFileForTesting, AlienConstants.GLOBAL_WORKSPACE_ID);
    imageLoader.importImages(csarFileForTesting, result.getResult(), result.getContext().getParsingErrors());
    // we expect to have warning issues due to missing files or invalid formats.
    Assert.assertFalse(result.hasError(ParsingErrorLevel.ERROR));
    Assert.assertTrue(result.hasError(ParsingErrorLevel.WARNING));
}