### Question:
ByteArray { public final String toHexString() { return toHexString(false); } ByteArray(byte[] bytes); static ByteArray from(String hex); final String toHexString(); final String toHexString(boolean withPrefix); final byte[] getBytes(); @Override String toString(); @Override final int hashCode(); @Override final boolean equals(Object o);  }### Answer:
@Test public void toHexString() { assertThat(byteArray.toHexString(), is("795c64c6eee9164539d679354f349779a04f57cb")); }
@Test public void toHexStringWithFlag() { assertThat(byteArray.toHexString(true), is("0x795c64c6eee9164539d679354f349779a04f57cb")); assertThat(byteArray.toHexString(false), is("795c64c6eee9164539d679354f349779a04f57cb")); }