@Test
public void testExtractX509CSRDnsNames() throws IOException {

    Path path = Paths.get("src/test/resources/valid_emails.csr");
    String csr = new String(Files.readAllBytes(path));
    PKCS10CertificationRequest certReq = Crypto.getPKCS10CertRequest(csr);
    assertNotNull(certReq);
    List<String> dnsNames = new LinkedList<>();
    dnsNames.add("production.athenz.ostk.athenz.cloud");
    dnsNames.add("1001.instanceid.athenz.ostk.athenz.cloud");
    assertEquals(Crypto.extractX509CSRDnsNames(certReq), dnsNames);
}