@Test
public void hexToLong() {

    String traceIdOrig;
    String traceIdResult;
    Random rand = new Random();
    BigInteger traceIdNum;
    //Testing process random long long large than 120 bits
    for (int i = 0; i < 10; i++) {
        traceIdNum = new BigInteger(64, 100, rand);
        traceIdOrig = traceIdNum.toString(16);
        long id = CommonUtils.hexToLong(traceIdOrig);
        traceIdResult = String.format("%x", id);
        assertEquals(traceIdOrig, traceIdResult);
    }
}