Dependency { public Dependency copy() { try { return new Dependency(getFileName(), getDestination(), getType(), getIvyCoordinates(), getSHA1()); } catch (InvalidHashException e) { throw new RuntimeException("InvalidHashException when copying dependency."); } } Dependency(final String fileName, final String destination, final String type, final String ivyCoordinates,
      final String sha1);  Dependency(final Map<String, String> fieldMap); Dependency copy(); DependencyFile makeDependencyFile(final File file); @JsonProperty("file") String getFileName(); String getDestination(); String getType(); String getIvyCoordinates(); String getSHA1(); @Override boolean equals(final Object o); @Override int hashCode();  }
@Test public void testCopyDependency() throws Exception { Dependency depA = ThinArchiveTestUtils.getDepA(); Dependency newDep = depA.copy(); assertEquals(depA, newDep); }