@Test
public void testGenerateWalletFileFreshEcKeyPair() throws Exception {

    String pw = "password";
    String fileName = WalletUtils.generateWalletFile(pw, this.tempDir);
    Path p = Paths.get(this.tempDir.getPath(), fileName);
    Wallet loadedWallet = Wallet.fromNEP6Wallet(p.toFile());
    loadedWallet.decryptAllAccounts(pw);
    assertTrue(AddressUtils.isValidAddress(loadedWallet.getAccounts().get(0).getAddress()));
    assertThat(loadedWallet.getAccounts().get(0).getECKeyPair(), notNullValue());
}