### Question:
BuildResult { @Override public int hashCode() { return Objects.hash(imageDigest, imageId); } BuildResult(DescriptorDigest imageDigest, DescriptorDigest imageId); DescriptorDigest getImageDigest(); DescriptorDigest getImageId(); @Override int hashCode(); @Override boolean equals(Object other);  }### Answer:
@Test public void testEquality() { BuildResult container1 = new BuildResult(digest1, id); BuildResult container2 = new BuildResult(digest1, id); BuildResult container3 = new BuildResult(digest2, id); Assert.assertEquals(container1, container2); Assert.assertEquals(container1.hashCode(), container2.hashCode()); Assert.assertNotEquals(container1, container3); }