### Question:
CharacterProperties { public String toHexString() { return Integer.toHexString(code); } private  CharacterProperties(byte code);  CharacterProperties(boolean isAlpha, boolean isDigit,
            boolean isUpper, boolean isLower, boolean isPunctuation); static CharacterProperties forByteCode(byte code); static CharacterProperties forHexString(String hexString); static CharacterProperties forCharacter(char c); static CharacterProperties forString(String cs); boolean isAlpha(); boolean isLower(); boolean isUpper(); boolean isDigit(); boolean isPunctuation(); byte toByteCode(); String toHexString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testToHexString() { assertEquals(semicolon.toHexString(), "10"); assertEquals(b.toHexString(), "3"); assertEquals(W.toHexString(), "5"); assertEquals(digit7.toHexString(), "8"); assertEquals(equalSign.toHexString(), "0"); }