@Test
public void testValidateInvalidDnsNames() throws IOException {

    Path path = Paths.get("src/test/resources/athenz.instanceid.csr");
    String csr = new String(Files.readAllBytes(path));
    X509ServiceCertRequest certReq = new X509ServiceCertRequest(csr);
    assertNotNull(certReq);
    StringBuilder errorMsg = new StringBuilder(256);
    assertFalse(certReq.validate("sys", "production", "provider",
            null, null, null, null, null, null, errorMsg));
}