public static byte[] hexStringToByteArray(String s) {
    String noSpaceString = s.replaceAll(" ", "");
    byte[] data = Hex.decodeHex(noSpaceString);
    return data;
  }
Provide test use functions for JfifUtilTest.
imagepipeline-base/src/test/java/com/facebook/imageutils/JfifTestUtils.java