@Test
public void testCreateSecp256k1KeyPair() throws Exception {

    KeyPair keyPair = Keys.createSecp256k1KeyPair();
    PrivateKey privateKey = keyPair.getPrivate();
    PublicKey publicKey = keyPair.getPublic();
    assertNotNull(privateKey);
    assertNotNull(publicKey);
    assertThat(privateKey.getEncoded().length, is(144));
    assertThat(publicKey.getEncoded().length, is(88));
}