@Test
public void testConvertedLongs() {

ertEquals(0, comparator.compare(Bytes.fromLong(1l), Bytes.fromLong(1l)));
ertEquals(-1, comparator.compare(Bytes.fromLong(1l), Bytes.fromLong(2l)));
ertEquals(1, comparator.compare(Bytes.fromLong(2l), Bytes.fromLong(1l)));
 (long l1 = 0; l1 <= 1024; ++l1) {
 for (long l2 = 0; l2 <= 1024; ++l2) {
 (l1 == l2) {
  assertEquals("Invalid comparison result for l1=" + l1 + " and l2=" + l2, 0,
   comparator.compare(Bytes.fromLong(l1), Bytes.fromLong(l2)));
else if (l1 < l2) {
  assertTrue("Invalid comparison result for l1=" + l1 + " and l2=" + l2,
   comparator.compare(Bytes.fromLong(l1), Bytes.fromLong(l2)) < 0);
else {
  assertTrue("Invalid comparison result for l1=" + l1 + " and l2=" + l2,
   comparator.compare(Bytes.fromLong(l1), Bytes.fromLong(l2)) > 0);
 }
}