ArtifactAdapter implements ArtifactAndLicense { @Override public String getFilename() { return filename; } ArtifactAdapter(Artifact artifact); static String getLicenseText(License license); static String createKey(License license); @Override String getFilename(); @Override List<LicenseInfo> getLicenses(); @Override Optional<String> getCopyrightStatement(); @Override Optional<String> getPurl();  }
@Test void basicMavenArtifactTest() { ArtifactAdapter adapter = new ArtifactAdapter(artifact); assertThat(adapter.getFilename()).isEqualTo("chet.txt"); }