@Test
public void testValidateUri() throws IOException {

    Path path = Paths.get("src/test/resources/multi_dns_domain.csr");
    String csr = new String(Files.readAllBytes(path));
    X509CertRequest certReq = new X509CertRequest(csr);
    assertNotNull(certReq);
    List<String> providerDnsSuffixList = new ArrayList<>();
    providerDnsSuffixList.add("ostk.athenz.cloud");
    DataCache athenzSysDomainCache = Mockito.mock(DataCache.class);
    Mockito.when(athenzSysDomainCache.getProviderDnsSuffixList("provider"))
            .thenReturn(providerDnsSuffixList);
    // both of our lists are null
    Mockito.when(athenzSysDomainCache.getProviderHostnameAllowedSuffixList("provider"))
            .thenReturn(null);
    Mockito.when(athenzSysDomainCache.getProviderHostnameDeniedSuffixList("provider"))
            .thenReturn(null);
    // we should get false since we're not allowed
    assertFalse(certReq.validateDnsNames("athenz", "api", "provider", athenzSysDomainCache,
            "zts.athenz.info", "api.athenz.ostk.athenz.info", null, null));
}