### Question:
DefaultManagedArtifact implements ManagedArtifact { public String getArtifactName() { if (artifactName == null) { artifactName = artifactFile.getName(); } return artifactName; } DefaultManagedArtifact();   DefaultManagedArtifact(String pathName); @SuppressWarnings("unchecked") T getRequestParameters(); void initFromPath(String absolutePath); void initFromUploadedArtifact(UploadedArtifact uploaded); String getArtifactName(); byte[] getArtifactContents(); boolean matchesPathInfo(String pathInfo); boolean isExpired(); String getHttpContentType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); String getAbsolutePath();  }### Answer:
@Test public void testFileName() { DefaultManagedArtifact managedArtifact = new DefaultManagedArtifact(artifactFileOnePath); Assert.assertEquals(managedArtifact.getArtifactName(), "DummyArtifact.any", "Artifact file name does not match"); }