@Test
public void testValidateSpiffeRoleCert() throws IOException {

    Path path = Paths.get("src/test/resources/spiffe_role.csr");
    String csr = new String(Files.readAllBytes(path));
    X509RoleCertRequest certReq = new X509RoleCertRequest(csr);
    Set<String> roles = new HashSet<>();
    roles.add("api");
    Set<String> orgValues = new HashSet<>();
    orgValues.add("Athenz");
    assertTrue(certReq.validate(roles, "coretech", "sports.api", null, orgValues));
}