public static ECKeyPair createEcKeyPair()
            throws InvalidAlgorithmParameterException,
                    NoSuchAlgorithmException,
                    NoSuchProviderException {
        return createEcKeyPair(secureRandom());
    }
@Test
    public void testCreateEcKeyPair() throws Exception {
        ECKeyPair ecKeyPair = Keys.createEcKeyPair();
        assertEquals(ecKeyPair.getPublicKey().signum(), (1));
        assertEquals(ecKeyPair.getPrivateKey().signum(), (1));
    }