### Question:
TexHexTriplet { public String getHexString() { return toTwoDigitHex(roughgrass) + toTwoDigitHex(mud) + toTwoDigitHex(dirt); } 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 testGetHexString() { assertEquals(strExpected, texExpected.getHexString()); }