### Question:
TexHexTriplet { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TexHexTriplet other = (TexHexTriplet) obj; if (dirt != other.dirt) return false; if (mud != other.mud) return false; if (roughgrass != other.roughgrass) return false; return true; } TexHexTriplet(int roughgrass, int mud, int dirt); int getRoughgrass(); int getMud(); int getDirt(); String getHexString(); int getTexture(); ColorDef getColorDef(); static TexHexTriplet of(double roughgrass, double mud, double dirt); static TexHexTriplet of(int roughgrass, int mud, int dirt); static TexHexTriplet of(ColorDef c); static TexHexTriplet parse(String s); static TexHexTriplet parse(int hex); static String convertToHexString(int roughgrass, int mud, int dirt); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); final int roughgrass; final int mud; final int dirt; }### Answer:
@Test public void testEquals() { assertTrue(texExpected.equals(new TexHexTriplet(r, m, d))); }