@Test
public void testDeleteInstanceIdentity() {

    ChangeLogStore structStore = new ZMSFileChangeLogStore("/tmp/zts_server_unit_tests/zts_root",
            privateKey, "0");
    DataStore store = new DataStore(structStore, null);
    ZTSImpl ztsImpl = new ZTSImpl(mockCloudStore, store);
    InstanceCertManager instanceManager = Mockito.mock(InstanceCertManager.class);
    Mockito.when(instanceManager.deleteX509CertRecord("athenz.provider", "1001", "athenz.production")).thenReturn(true);
    Mockito.when(instanceManager.updateX509CertRecord(Mockito.any())).thenReturn(true);
    ztsImpl.instanceCertManager = instanceManager;
    ResourceContext context = createResourceContext(null);
    try {
        ztsImpl.deleteInstanceIdentity(context, "athenz.provider",
            "athenz", "production", "1001");
    } catch (Exception ex) {
        fail();
    }
}