### Question:
EbcdicHexInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { for (int i = 0; i < data.length; i++) { b[offset + i * 2] = HEX_EBCDIC[(data[i] & 0xF0) >> 4]; b[offset + i * 2 + 1] = HEX_EBCDIC[data[i] & 0x0F]; } }  void interpret(byte[] data, byte[] b, int offset); byte[] uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int nBytes); static final EbcdicHexInterpreter INSTANCE; }### Answer:
@Test public void testInterpret() { byte[] result = new byte[asciiData.length * 2]; ebcdicHexInterpreter.interpret(asciiData, result, 0); assertThat(result, is(hexEbcdicData)); }