private void assertEncoding(String expected, byte[] encoded) {
   String actual = ByteUtil.convertByteArrayToHexString(encoded);
   assertEquals(expected, actual);
 }
 private void assertDecoding(Message message, Context decodingContext, String expected) {
   ByteArrayInputStream byteIn =
       new ByteArrayInputStream(ByteUtil.convertHexStringToByteArray(expected));
   FastDecoder decoder = new FastDecoder(decodingContext, byteIn);
   assertEquals(message, decoder.readMessage());
 }