Dodecahedron { public boolean equals(Object obj) { if (!(obj instanceof Dodecahedron)) { return false; } else { Dodecahedron d = (Dodecahedron) obj; return (label.equalsIgnoreCase(d.getLabel()) && color.equalsIgnoreCase(d.getColor()) && Math.abs(edge - d.getEdge()) < .000001); } } Dodecahedron(String labelIn, String colorIn, double edgeIn); String getLabel(); boolean setLabel(String labelIn); String getColor(); boolean setColor(String colorIn); double getEdge(); boolean setEdge(double edgeIn); double surfaceArea(); double volume(); double surfaceToVolumeRatio(); String toString(); static void resetCount(); boolean equals(Object obj); int hashCode();  }
@Test public void equalsTest() throws Exception { Assert.assertFalse(d.equals(dFalse)); Assert.assertTrue(d.equals(dTrue)); }