EncryptedPrivateKey implements Encrypted { public static EncryptedPrivateKey of(final String encoded) { return new EncryptedPrivateKey(encoded); } EncryptedPrivateKey(final String encoded);  EncryptedPrivateKey(final BytesValue bytesValue); protected  EncryptedPrivateKey(); static EncryptedPrivateKey of(final String encoded); static EncryptedPrivateKey of(final BytesValue bytesValue); @Override String toString(); String getEncoded(); static final byte ENCRYPTED_PREFIX; static final EncryptedPrivateKey EMPTY; }
@Test public void testOf() { final EncryptedPrivateKey encryptedPrivateKey = EncryptedPrivateKey.of(encoded); assertNotNull(encryptedPrivateKey); }
@Test public void shouldOfThrowExceptionOnInvalidVersion() { try { EncryptedPrivateKey.of(withoutVersion); } catch (Exception e) { } }