Account { public Boolean isDefault() { if (this.wallet == null) return false; return this.wallet.isDefault(this.getScriptHash()); } protected  Account();  Account(ECKeyPair ecKeyPair); String getAddress(); ScriptHash getScriptHash(); ECKeyPair getECKeyPair(); String getLabel(); Account label(String label); Wallet getWallet(); Boolean isDefault(); Boolean isLocked(); Account lock(); void unlock(); VerificationScript getVerificationScript(); String getEncryptedPrivateKey(); void decryptPrivateKey(String password); void decryptPrivateKey(String password, ScryptParams scryptParams); void encryptPrivateKey(String password); void encryptPrivateKey(String password, ScryptParams scryptParams); boolean isMultiSig(); Map<ScriptHash, BigInteger> getNep5Balances(Neow3j neow3j); NEP6Account toNEP6Account(); static Account createMultiSigAccount(List<ECPublicKey> publicKeys, int signatureThreshold); static Account fromWIF(String wif); static Account fromNewECKeyPair(); static Account fromNEP6Account(NEP6Account nep6Acct); static Account fromAddress(String address); static Account createAccount();  }
@Test public void testIsDefault() { Account a = Account.fromAddress(ADDRESS); Wallet wallet = Wallet.createWallet().addAccounts(a); assertFalse(a.isDefault()); wallet.defaultAccount(a.getScriptHash()); assertTrue(a.isDefault()); }