### Question:
MiscUtil { public static final byte[] getByteArrayFromHexString(final String str) { return DatatypeConverter.parseHexBinary(str); } private  MiscUtil(); static final String getHexString(final byte[] bytes); static final byte[] getByteArrayFromHexString(final String str); static final LSMessageDigest getLSMessageDigestFromHexString(final String str); static void createDirectoryIfNotExists(final File directory, final ILSLog log); static InputSource getInputSource(final InputStream inputStream);  }### Answer:
@Test public void testGetByteArrayFromHexString() { Assert.assertArrayEquals("byte array", MESSAGE_DIGEST_BYTE_ARRAY, MiscUtil.getByteArrayFromHexString(MESSAGE_DIGEST_STRING)); }