@Test
public void success_GenerateKeyPair_from_EdDsaKeyGenerator() {

    SchemeProvider schemeProvider = new Ed25519SchemeProvider(HashAlgorithm.KECCAK_512);
    EdDsaKeyGenerator generator = new EdDsaKeyGenerator(schemeProvider);
    PrivateKey privateKey = PrivateKey.newInstance(new byte[32]);
    EdKeyAnalyzer analyzer = EdKeyAnalyzerTestFactory.generate(Curve25519.getInstance());
    PublicKey checkKey = generator.derivePublicKey(privateKey);
    KeyPair keyPair = new KeyPair(privateKey, generator, analyzer);
    assertNotNull(keyPair);
    assertThat(keyPair.getPublicKey().getRaw(), is(checkKey.getRaw()));
}