@Test
public void testValidatePublicKeysCertFailure() throws IOException {

    
    Path path = Paths.get("src/test/resources/valid_provider_refresh.csr");
    String csr = new String(Files.readAllBytes(path));
    
    X509CertRequest certReq = new X509CertRequest(csr);
    assertNotNull(certReq);
    X509Certificate cert = Mockito.mock(X509Certificate.class);
    Mockito.when(cert.getPublicKey()).thenReturn(null);
    
    assertFalse(certReq.validatePublicKeys(cert));
}