@Test
public void testValidateCertReqDNSNamesNoDNS() throws IOException {

    Path path = Paths.get("src/test/resources/valid.csr");
    String csr = new String(Files.readAllBytes(path));
    
    // no dns names so all are valid
    
    PKCS10CertificationRequest certReq = Crypto.getPKCS10CertRequest(csr);
    boolean result = ZTSUtils.validateCertReqDNSNames(certReq, "athenz", "production");
    assertTrue(result);
    
    result = ZTSUtils.validateCertReqDNSNames(certReq, "athenz2", "production");
    assertTrue(result);
    
    result = ZTSUtils.validateCertReqDNSNames(certReq, "athenz2", "productio2");
    assertTrue(result);
}