c.replay();
UseKeyWithType key = new UseKeyWithType();
key.setApplication(Applications.SERVICE_NAME.getUri());
key.setIdentifier(EXPECTED_SERVICE_URI);
ldapCertRepo.saveCertificate(cert, key);
c.verify();
}
private X509Certificate getTestCert() throws FileNotFoundException, CertificateException {
File certFile = new File("src/test/resources/cert1.cer");
Assert.assertTrue(certFile.exists());