### Question:
AsciiHexInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { for (int i = 0; i < data.length; i++) { b[offset + i * 2] = HEX_ASCII[(data[i] & 0xF0) >> 4]; b[offset + i * 2 + 1] = HEX_ASCII[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 AsciiHexInterpreter INSTANCE; }### Answer:
@Test public void testInterpret() throws Exception { byte[] data = new byte[] {(byte)0xFF, (byte)0x12}; byte[] b = new byte[4]; inter.interpret(data, b, 0); TestUtils.assertEquals(new byte[] {0x46, 0x46, 0x31, 0x32}, b); }