PublicKey { public boolean isInitialized() { return initialized; } PublicKey(byte[] publicPointQEncoding);  PublicKey(PublicKey publicKey);  PublicKey(PrivateKey privateKey); byte[] getValue(); boolean isValid(); boolean isInitialized(); ECPoint getQ(); @Override String toString();  }
@Test public void testConstructorWithPrivateKeyInitializezPublicKey(){ PublicKey publicKey = new PublicKey(new PrivateKey("Test")); Assert.assertNotNull(publicKey); Assert.assertTrue(publicKey.isInitialized()); }