@Test
public void testCopyFromWithLong() {

  final ByteString expected =
      ByteString.copyFrom(new byte[]{0x7f, 0x6f, 0x5f, 0x4f, 0x3f, 0x2f, 0x1f, 0x0f});
  ByteString actual = copyFrom(Long.decode("0x0f1f2f3f4f5f6f7f").longValue());
  assertEquals(expected, actual);
}