@Test
public void testGetPKCS10CertRequest() throws IOException {

    Path path = Paths.get("src/test/resources/valid.csr");
    String certStr = new String(Files.readAllBytes(path));
    PKCS10CertificationRequest req = Crypto.getPKCS10CertRequest(certStr);
    assertNotNull(req);
    assertEquals(req.getSubject().toString(), "C=US,ST=CA,L=Sunnyvale,O=My Test Company,CN=athenz.syncer");
    Crypto.extractX509CSRPublicKey(req);
}