@Test
public void testFromNewECKeyPair() {

    Account a = Account.fromNewECKeyPair()
            .label("example")
            .lock();
    assertThat(a, notNullValue());
    assertThat(a.getAddress(), notNullValue());
    assertThat(a.getVerificationScript(), notNullValue());
    assertThat(a.getECKeyPair(), notNullValue());
    assertThat(a.getEncryptedPrivateKey(), is(nullValue()));
    assertThat(a.getLabel(), is("example"));
    assertThat(a.getECKeyPair(), notNullValue());
    assertTrue(a.isLocked());
}