@Test
public void testParseCertificate() throws Exception {

    CertificateIdentityParser parser = new CertificateIdentityParser(null, false);
    X509Certificate[] certs = new X509Certificate[]{ this.readCert("valid_cn_x509.cert") };
    CertificateIdentity certId = parser.parse(certs);
    assertNotNull(certId);
    assertEquals(certId.getDomain(), "athenz");
    assertEquals(certId.getService(), "syncer");
    assertNull(certId.getRoles());
}