@Test
void generateWithCertaintyParameter()
{

    AsymmetricKeyPair kp = generator.generate(new RSAKeyGenerationParameters(64, 1));
    assertThat(kp, not(nullValue()));
    assertThat(kp.getPrivate(), instanceOf(BcAsymmetricKeyParameters.class));
    assertThat(kp.getPublic(), instanceOf(BcAsymmetricKeyParameters.class));
    assertThat(((BcAsymmetricKeyParameters) kp.getPrivate()).getParameters(),
        instanceOf(RSAPrivateCrtKeyParameters.class));
    assertThat(((BcAsymmetricKeyParameters) kp.getPublic()).getParameters(), instanceOf(RSAKeyParameters.class));
}