@Test(groups = "io", dataProvider = "invalid-decode")
public void decodeException(final char[] data)
  throws Exception
{

  try {
    Hex.decode(data);
    Assert.fail("Should have thrown exception");
  } catch (Exception e) {
    Assert.assertEquals(IllegalArgumentException.class, e.getClass());
  }
}