@Test
public void testAdapt() {

  final ContractTxHash contractTxHash = ContractTxHash.of(encodedHash);
  assertEquals(ContractTxHash.of(encodedHash), contractTxHash.adapt(Hash.class));
  assertEquals(BlockHash.of(encodedHash), contractTxHash.adapt(BlockHash.class));
  assertEquals(ContractTxHash.of(encodedHash), contractTxHash.adapt(TxHash.class));
  assertEquals(ContractTxHash.of(encodedHash), contractTxHash.adapt(ContractTxHash.class));
}