@Test
public void testHDAccountNxt() throws MnemonicException, UnreadableWalletException {
DeterministicSeed seed = new DeterministicSeed(recoveryPhrase, null, "", 0);
DeterministicKey masterKey = HDKeyDerivation.createMasterPrivateKey(seed.getSeedBytes());
DeterministicHierarchy hierarchy = new DeterministicHierarchy(masterKey);
DeterministicKey entropy = hierarchy.get(NxtMain.get().getBip44Path(0), false, true);
NxtFamilyKey nxtKey = new NxtFamilyKey(entropy, null, null);
byte[] privateKey = nxtKey.getPrivateKey();
byte[] publicKey = nxtKey.getPublicKey();
NxtAddress address = new NxtAddress(NxtMain.get(), publicKey);
assertArrayEquals(nxtPrivateKey, privateKey);
assertArrayEquals(nxtPublicKey, publicKey);
assertEquals(nxtRsAddress, address.toString());
assertEquals(nxtAccountId, address.getAccountId());
}