@Test
    public void testSigAlgName() {
        ServiceTester.test("CertificateFactory")
            .withAlgorithm("X509")
            .run((p, algorithm) -> {
                X509Certificate c = certificateFromPEM(p, VALID_CERT);
                assertEquals("SHA256WITHRSA", c.getSigAlgName().toUpperCase(Locale.ROOT));
                c.verify(c.getPublicKey());
            });
    }
Confirm that explicit EC params aren't accepted in certificates.
common/src/test/java/org/conscrypt/java/security/cert/X509CertificateTest.java