@Test
public void testParityNewAccountFromWallet() throws Exception {
WalletFile walletFile = new WalletFile();
walletFile.setAddress("0x...");
WalletFile.Crypto crypto = new WalletFile.Crypto();
crypto.setCipher("CIPHER");
crypto.setCiphertext("CIPHERTEXT");
walletFile.setCrypto(crypto);
WalletFile.CipherParams cipherParams = new WalletFile.CipherParams();
cipherParams.setIv("IV");
crypto.setCipherparams(cipherParams);
crypto.setKdf("KDF");
WalletFile.ScryptKdfParams kdfParams = new WalletFile.ScryptKdfParams();
kdfParams.setDklen(32);
kdfParams.setN(1);
kdfParams.setP(10);
kdfParams.setR(100);
kdfParams.setSalt("SALT");
crypto.setKdfparams(kdfParams);
crypto.setMac("MAC");
walletFile.setCrypto(crypto);
walletFile.setId("cab06c9e-79a9-48ea-afc7-d3bdb3a59526");
walletFile.setVersion(1);
web3j.parityNewAccountFromWallet(walletFile, "password").send();
verifyResult("{\"jsonrpc\":\"2.0\",\"method\":\"parity_newAccountFromWallet\",\"params\":[{\"address\":\"0x...\",\"id\":\"cab06c9e-79a9-48ea-afc7-d3bdb3a59526\",\"version\":1,\"crypto\":{\"cipher\":\"CIPHER\",\"ciphertext\":\"CIPHERTEXT\",\"cipherparams\":{\"iv\":\"IV\"},\"kdf\":\"KDF\",\"kdfparams\":{\"dklen\":32,\"n\":1,\"p\":10,\"r\":100,\"salt\":\"SALT\"},\"mac\":\"MAC\"}},\"password\"],\"id\":1}");
}