@Test
public void testParseData2() throws URISyntaxException, IOException {

    Path recordFilePath = Paths.get(".", "target", "foo");
    JsonReader jsonReader = new JsonReader(recordFilePath, Paths.get("tmp"), StandardCharsets.UTF_8);
    URI uri = this.getClass().getClassLoader().getResource("JsonReaderTest/data2.json").toURI();
    InputStream iStream = Files.newInputStream(Paths.get(uri));
    artifacts = jsonReader.createArtifactsList(iStream);
    assertThat(artifacts.stream()
            .map(artifact -> artifact.askForGet(DeclaredLicenseInformation.class))
            .filter(Optional::isPresent)
            .map(Optional::get)
            .map(LicenseInformation::evaluate))
            .contains("PUBLIC-DOMAIN");
    assertThat(artifacts.stream()
            .map(Artifact::getAnalysisSource)).contains("JSON");
    Optional<List<Issue>> issues = artifacts.stream()
            .map(artifact -> artifact.askForGet(ArtifactIssues.class))
            .filter(Optional::isPresent)
            .map(Optional::get)
            .findFirst();
    assertThat(issues.isPresent()).isTrue();
    issues.ifPresent(i -> {
        assertThat(i.stream().map(Issue::getStatus)).contains(SecurityIssueStatus.OPEN);
        assertThat(i.stream().map(Issue::getReference)).contains("CVE-2018-8014");
        assertThat(i.stream().map(Issue::getSeverity)).contains(5.9);
    });
}