### Question:
BigendianEncoding { static void longToBase16String(long value, char[] dest, int destOffset) { byteToBase16((byte) (value >> 56 & 0xFFL), dest, destOffset); byteToBase16((byte) (value >> 48 & 0xFFL), dest, destOffset + BYTE_BASE16); byteToBase16((byte) (value >> 40 & 0xFFL), dest, destOffset + 2 * BYTE_BASE16); byteToBase16((byte) (value >> 32 & 0xFFL), dest, destOffset + 3 * BYTE_BASE16); byteToBase16((byte) (value >> 24 & 0xFFL), dest, destOffset + 4 * BYTE_BASE16); byteToBase16((byte) (value >> 16 & 0xFFL), dest, destOffset + 5 * BYTE_BASE16); byteToBase16((byte) (value >> 8 & 0xFFL), dest, destOffset + 6 * BYTE_BASE16); byteToBase16((byte) (value & 0xFFL), dest, destOffset + 7 * BYTE_BASE16); } private  BigendianEncoding();   }### Answer:
@Test void longToBase16String() { char[] chars1 = new char[BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(FIRST_LONG, chars1, 0); assertThat(chars1).isEqualTo(FIRST_CHAR_ARRAY); char[] chars2 = new char[BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(SECOND_LONG, chars2, 0); assertThat(chars2).isEqualTo(SECOND_CHAR_ARRAY); char[] chars3 = new char[2 * BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(FIRST_LONG, chars3, 0); BigendianEncoding.longToBase16String(SECOND_LONG, chars3, BigendianEncoding.LONG_BASE16); assertThat(chars3).isEqualTo(BOTH_CHAR_ARRAY); }
@Test public void longToBase16String() { char[] chars1 = new char[BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(FIRST_LONG, chars1, 0); assertThat(chars1).isEqualTo(FIRST_CHAR_ARRAY); char[] chars2 = new char[BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(SECOND_LONG, chars2, 0); assertThat(chars2).isEqualTo(SECOND_CHAR_ARRAY); char[] chars3 = new char[2 * BigendianEncoding.LONG_BASE16]; BigendianEncoding.longToBase16String(FIRST_LONG, chars3, 0); BigendianEncoding.longToBase16String(SECOND_LONG, chars3, BigendianEncoding.LONG_BASE16); assertThat(chars3).isEqualTo(BOTH_CHAR_ARRAY); }