 
         switch cardManager.publishCard(rawCard: rawCard2).startSync() {
         case .success: XCTFail()
-        case .failure: break
+        case .failure(let error):
+            guard let error = error as? CardManagerError,
+                error == .gotWrongCard else {
+                    XCTFail()
+                    return
+            }
         }
     }
     

        
        switch cardManager.getCard(withId: "375f795bf6799b18c4836d33dce5208daf0895a3f7aacbcd0366529aed2345d4").startSync() {
        case .success: XCTFail()
        case .failure: break
        }
    }


import VirgilCryptoApiImpl
import VirgilSDK

class CardClientStub_STC34: CardClientProtocol {
    private var testsDict: Dictionary<String, Any>!

