### Question:
Hash256 extends Hash<Hash256> { public static Hash256 fromHex(String s) { return translate.fromHex(s); } Hash256(byte[] bytes); int divergenceDepth(Hash256 other); int divergenceDepth(int i, Hash256 other); @Override Object toJSON(); @Override byte[] toBytes(); @Override String toHex(); @Override void toBytesSink(BytesSink to); @Override Type type(); boolean isZero(); boolean isNonZero(); static Hash256 fromHex(String s); static Hash256 signingHash(byte[] blob); static Hash256 prefixedHalfSha512(Prefix prefix, byte[] blob); int nibblet(int depth); static Hash256Field hash256Field(final Field f); static final BigInteger bookBaseSize; static final Hash256 ZERO_256; static Translator translate; static public Hash256Field LedgerHash; static public Hash256Field ParentHash; static public Hash256Field TransactionHash; static public Hash256Field AccountHash; static public Hash256Field PreviousTxnID; static public Hash256Field AccountTxnID; static public Hash256Field LedgerIndex; static public Hash256Field WalletLocator; static public Hash256Field RootIndex; static public Hash256Field BookDirectory; static public Hash256Field InvoiceID; static public Hash256Field Nickname; static public Hash256Field Amendment; static public Hash256Field TicketID; static public Hash256Field hash; static public Hash256Field index; }### Answer:
@Test public void testCompareTo() throws Exception { Hash256 base = Hash256.fromHex("FA745475043B71C0C25A0C7ACA18E9E8CF99500CEAE366B00000000000000000"), leaf = Hash256.fromHex("FA745475043B71C0C25A0C7ACA18E9E8CF99500CEAE366B05319606406AE6DB7"); assertTrue(leaf.compareTo(base) == 1); }