@Test
  public void testCompressedInt() throws IOException {
    testCompressedInt(0);
    testCompressedInt(Integer.MAX_VALUE);
    testCompressedInt(Integer.MIN_VALUE);

    for (int i = 0; i < 3; i++) {
      testCompressedInt((128 << i) - 1);
    }

    for (int i = 0; i < 3; i++) {
      testCompressedInt((128 << i));
    }
  }
Test 7-bit encoding of integers.
@throws IOException On test failure.
hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestByteBufferUtils.java