WalletApiImpl extends AbstractApi implements WalletApi, Signer { @Override public String toString() { return String.format("WalletApiImpl(keyStore=%s, principal=%s)", keyStore.getClass().getName(), getPrincipal()); } WalletApiImpl(final KeyStore keyStore, final TryCountAndInterval tryCountAndInterval); @Override void bind(final AergoClient aergoClient); @Override PreparedWalletApi with(final AergoClient aergoClient); @Override boolean unlock(final Authentication authentication); @Override boolean lock(final Authentication authentication); @Override boolean lock(); @Override TransactionApi transactionApi(); @Override QueryApi queryApi(); @Override Transaction sign(final RawTransaction rawTransaction); @Override Signature signMessage(final BytesValue message); @Override Signature signMessage(final Hash hashedMessage); @Override AccountAddress getPrincipal(); @Override String toString();  }
@Test public void testObjectBasic() { final WalletApi walletApi1 = supplyWalletApi(); final WalletApi walletApi2 = supplyWalletApi(); assertNotNull(walletApi1.toString()); assertNotEquals(walletApi1, walletApi2); assertEquals(walletApi1.hashCode(), walletApi1.hashCode()); assertNotEquals(walletApi1.hashCode(), walletApi2.hashCode()); }