### Question:
HexUtils { public static String byteToHexString(byte value) { final StringBuilder hex = new StringBuilder(2); byte b = value; hex.append(HEXES.charAt((b & 0xF0) >> 4)) .append(HEXES.charAt((b & 0x0F))); return hex.toString(); }  static String byteArrayToHexString(byte[] value); static String byteToHexString(byte value); static byte[] hexStringToByteArray(String value); static boolean containsLetters(String parameter); static String integerToHexString(int value, int minBytes); static String prettyHexString(String hexString); static String prettyHexString(byte[] value);  }### Answer:
@Test public final void testByteToHexString() { byte b = (byte)0xE8; String expectedResult = "E8"; String result = HexUtils.byteToHexString(b); assertThat("Returned string must be equal to 'expectedResult'", result, is(equalTo(expectedResult))); }