MavenArtifactDescriptor { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MavenArtifactDescriptor)) { return false; } return this.mavenGav().equals(((MavenArtifactDescriptor) obj).mavenGav()); } private  MavenArtifactDescriptor();  MavenArtifactDescriptor(String groupId, String artifactId, String version);  MavenArtifactDescriptor(String groupId, String artifactId, String type, String classifier, String version); static Builder build(); static MavenArtifactDescriptor fromMscGav(String gav); static MavenArtifactDescriptor fromMavenGav(String gav); @Override boolean equals(Object obj); @Override int hashCode(); String groupId(); String artifactId(); String version(); String classifier(); String type(); String mscGav(); ArtifactCoordinates mscCoordinates(); String mavenGav(); String repoPath(boolean forJar);  }
@Test public void testEquals() { MavenArtifactDescriptor left = MavenArtifactDescriptor.build() .groupId("org.wildfly.swarm") .artifactId("fish") .version("1.0").build(); MavenArtifactDescriptor right = MavenArtifactDescriptor.build() .groupId("org.wildfly.swarm") .artifactId("fish") .version("1.0").build(); assertThat(left).isEqualTo(right); }