@Test
public void testAdapt() {

  final AccountAddress accountAddress = AccountAddress.of(encodedAddress);
  final AccountAddress accountActual = accountAddress.adapt(AccountAddress.class);
  final ContractAddress contractActual = accountAddress.adapt(ContractAddress.class);
  final AccountAddress accountExpected = AccountAddress.of(encodedAddress);
  final ContractAddress contractExpected = ContractAddress.of(encodedAddress);
  assertEquals(accountExpected, accountActual);
  assertEquals(contractExpected, contractActual);
}