@Test
void generateSelfSignedCertificateVersion3WithoutExtension() throws Exception
{

    CertifiedPublicKey certificate =
        factory.getInstance(signerFactory.getInstance(true, rsaPrivateKey),
            new X509CertificateGenerationParameters(null))
            .generate(new DistinguishedName("CN=Test"), rsaPublicKey,
                new X509CertificateParameters());
    checkSelfSigned(certificate, 3);
}