public static int readVInt(ByteData arr, long position) {
        byte b = arr.get(position++);

        if(b == (byte) 0x80)
            throw new RuntimeException("Attempting to read null value as int");

        int value = b & 0x7F;
        while ((b & 0x80) != 0) {
          b = arr.get(position++);
          value <<= 7;
          value |= (b & 0x7F);
        }

        return value;
    }
@Test(expected = EOFException.class)
    public void testReadVIntTruncatedHollowBlobInput() throws IOException {
        HollowBlobInput hbi = HollowBlobInput.serial(BYTES_TRUNCATED);

        VarInt.readVInt(hbi);
    }