@Test
public void testMetadataArtifactsPUrl() throws JsonSyntaxException, IOException {

  ClassLoader classLoader = getClass().getClassLoader();
  String path = classLoader.getResource("testRootDir5").getPath();
  Vulnerability vuln = Metadata.getVulnerabilityMetadata(path);
  assertEquals(1, vuln.getArtifacts().size());
  assertEquals(false, vuln.getArtifacts().get(0).getAffected());
  assertEquals(
      "pkg:maven://org.springframework.security/spring-security-config@5.1.1.RELEASE",
      vuln.getArtifacts().get(0).getId());
  assertEquals("Manual review(frontend)", vuln.getArtifacts().get(0).getReason());
}