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

    Path csarFileForTesting = Paths.get(CSAR_OUTPUT_FOLDER.toString(), tmpArchiveName);
    // Zip the csarSourceFolder and write it to csarFileForTesting
    FileUtil.zip(PATH_TOSCA_BASE_TYPES, csarFileForTesting);
    Path imagesPath = Paths.get("target/alien/images");
    if (!Files.exists(imagesPath)) {
        Files.createDirectories(imagesPath);
    }
    // Parse the archive for definitions
    ParsingResult<ArchiveRoot> result = parser.parse(csarFileForTesting, AlienConstants.GLOBAL_WORKSPACE_ID);
    imageLoader.importImages(csarFileForTesting, result.getResult(), result.getContext().getParsingErrors());
    Assert.assertFalse(result.hasError(ParsingErrorLevel.ERROR));
    Assert.assertFalse(result.hasError(ParsingErrorLevel.WARNING));
    checkImages(result.getResult().getNodeTypes());
}