### Question:
Longs { public static long reverseBytes(long lng) { long b7 = lng >>> 56; long b6 = (lng >>> 40) & 0xFF00L; long b5 = (lng >>> 24) & 0xFF0000L; long b4 = (lng >>> 8) & 0xFF000000L; long b3 = (lng & 0xFF000000L) << 8; long b2 = (lng & 0xFF0000L) << 24; long b1 = (lng & 0xFF00L) << 40; long b0 = lng << 56; return (b0 | b1 | b2 | b3 | b4 | b5 | b6 | b7); }  static long decode(String string); static long parseLong(String string); static long parseLong(String string, int radix); static String toBinaryString(long l); static String toHexString(long l); static String toString(long l); static long highestOneBit(long lng); static long lowestOneBit(long lng); static int numberOfLeadingZeros(long lng); static int numberOfTrailingZeros(long lng); static int bitCount(long lng); static long rotateLeft(long lng, int distance); static long rotateRight(long lng, int distance); static long reverseBytes(long lng); static long reverse(long lng); static final long MAX_VALUE; static final long MIN_VALUE; }### Answer:
@Test public void test_reverseBytesJ() { assertEquals(0xAABBCCDD00112233L, Longs.reverseBytes(0x33221100DDCCBBAAL)); assertEquals(0x1122334455667788L, Longs.reverseBytes(0x8877665544332211L)); assertEquals(0x0011223344556677L, Longs.reverseBytes(0x7766554433221100L)); assertEquals(0x2000000000000002L, Longs.reverseBytes(0x0200000000000020L)); }