@Test
public void testToLongError() {

    String dpidStr = "09:08:07:06:05:04:03:02:01";
    try {
        HexString.toLong(dpidStr);
        fail("HexString.toLong() should have thrown a NumberFormatException");
    }
    catch (NumberFormatException expected) {
        // do nothing
    }
}