AccountWithKey extends AbstractAccount implements TxSigner { @Override public AccountAddress getAddress() { return key.getAddress(); }  @Override AccountAddress getAddress(); @Override Transaction sign(final RawTransaction rawTransaction);  }
@Test public void testGetAddress() throws Exception { final AergoKey aergoKey = keyGenerator.create(); final Account account = new AccountWithKey(aergoKey); assertEquals(aergoKey.getAddress(), account.getAddress()); }