### Question:
DescVarLengthFastByteComparisons { public static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { return LexicographicalComparerHolder.BEST_COMPARER.compareTo(b1, s1, l1, b2, s2, l2); } private  DescVarLengthFastByteComparisons(); static int compareTo(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2);  }### Answer:
@Test public void testNullIsSmallest() { byte[] b1 = ByteUtil.EMPTY_BYTE_ARRAY; byte[] b2 = Bytes.toBytes("a"); int cmp = DescVarLengthFastByteComparisons.compareTo(b1, 0, b1.length, b2, 0, b2.length); assertTrue(cmp < 0); cmp = DescVarLengthFastByteComparisons.compareTo(b2, 0, b2.length, b1, 0, b1.length); assertTrue(cmp > 0); }
@Test public void testShorterSubstringIsBigger() { byte[] b1 = Bytes.toBytes("ab"); byte[] b2 = Bytes.toBytes("a"); int cmp = DescVarLengthFastByteComparisons.compareTo(b1, 0, b1.length, b2, 0, b2.length); assertTrue(cmp < 0); }