@Test
public void testHex() {

  final Object[][] testParameters =
      new Object[][] {{1, "00000001"}, {2, "00000002"}, {3, "00000003"}, {10, "0000000a"},
          {12, "0000000c"}, {25, "00000019"}, {50, "00000032"}, {1024, "00000400"}};
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    int value = (Integer) testParameter[0];
    assertEquals(expected, ObjectUtils.hex(value));
  }
}