### Question:
VariableLengthQuantity { public static void writeVariableLengthLong(long value, SliceOutput sliceOutput) { while ((value & (~0x7f)) != 0) { sliceOutput.writeByte((int) ((value & 0x7f) | 0x80)); value >>>= 7; } sliceOutput.writeByte((int) value); } private  VariableLengthQuantity(); static int variableLengthSize(int value); static int variableLengthSize(long value); static void writeVariableLengthInt(int value, SliceOutput sliceOutput); static void writeVariableLengthLong(long value, SliceOutput sliceOutput); static int readVariableLengthInt(SliceInput sliceInput); static int readVariableLengthInt(ByteBuffer sliceInput); static long readVariableLengthLong(SliceInput sliceInput);  }### Answer:
@Test public void testWriteVariableLengthLong() { testVariableLengthLong(0x0L); testVariableLengthLong(0xfL); testVariableLengthLong(0xffL); testVariableLengthLong(0xfffL); testVariableLengthLong(0xffffL); testVariableLengthLong(0xfffffL); testVariableLengthLong(0xffffffL); testVariableLengthLong(0xfffffffL); testVariableLengthLong(0xffffffffL); testVariableLengthLong(0xfffffffffL); testVariableLengthLong(0xffffffffffL); testVariableLengthLong(0xfffffffffffL); testVariableLengthLong(0xffffffffffffL); testVariableLengthLong(0xfffffffffffffL); testVariableLengthLong(0xffffffffffffffL); testVariableLengthLong(0xfffffffffffffffL); testVariableLengthLong(0xffffffffffffffffL); }