@Test
public void testAdapt() {

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