@Test
public void testDeleteX509CertRecord() {

    InstanceCertManager instance = new InstanceCertManager(null, null, null, true);
    instance.setCertSigner(null);
    CertRecordStore certStore = Mockito.mock(CertRecordStore.class);
    CertRecordStoreConnection certConnection = Mockito.mock(CertRecordStoreConnection.class);
    when(certStore.getConnection()).thenReturn(certConnection);
    
    when(certConnection.deleteX509CertRecord("provider", "instance", "service")).thenReturn(true);
    instance.setCertStore(certStore);
    boolean result = instance.deleteX509CertRecord("provider", "instance", "service");
    assertTrue(result);
    instance.shutdown();
}