@Test
public void testExtractX509CertURIsNullSingle() throws Exception {

    try (InputStream inStream = new FileInputStream("src/test/resources/x509_altnames_singleuri.cert")) {
        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream);
        List<String> uris = Crypto.extractX509CertURIs(cert);
        assertEquals(1, uris.size());
        assertEquals(uris.get(0), "spiffe://athenz/domain1/service1");
    }
}