public static Pair<Double, String> getUint(long value) {
        double doubleValue = (double) value;
        String unit = "";
        if (value >= BILLION) {
            unit = "B";
            doubleValue /= BILLION;
        } else if (value >= MILLION) {
            unit = "M";
            doubleValue /= MILLION;
        } else if (value >= THOUSAND) {
            unit = "K";
            doubleValue /= THOUSAND;
        }
        return Pair.create(doubleValue, unit);
    }
@Test
    public void testGetUint() {
        Pair<Double, String> result;
        result = DebugUtil.getUint(2000000000L);
        Assert.assertEquals(Double.valueOf(2.0), result.first);
        Assert.assertEquals(result.second, "B");

        result = DebugUtil.getUint(1234567L);
        Assert.assertEquals(result.first, Double.valueOf(1.234567));
        Assert.assertEquals(result.second, "M");

        result = DebugUtil.getUint(1234L);
        Assert.assertEquals(result.first, Double.valueOf(1.234));
        Assert.assertEquals(result.second, "K");

        result = DebugUtil.getUint(123L);
        Assert.assertEquals(result.first, Double.valueOf(123.0));
        Assert.assertEquals(result.second, "");
    }