             try serviceLocator.unregister(type(of: testServiceDouble), name: serviceName)
 
         } catch ServiceLocatorError.serviceTypeMismatch(expected: let expectedType, found: let foundType) {
-            XCTAssertTrue(type(of: expectedType) != type(of: foundType))
-        } catch let error {
+            assertMismatchTypes(expected: expectedType,
+                                found: foundType,
+                                registeredService: String.self,
+                                getService: Double.self)
+        } catch {
             XCTFail("💥: Unregister failed with error: \(error)")
         }
     }


        } catch ServiceLocatorError.duplicateLazyService(let duplicatedServiceName) {
            XCTAssertEqual(duplicatedServiceName, testServiceName)
        } catch let error {
            XCTFail("💥: Got unexpected error `\(error)`")
        }
        


        } catch ServiceLocatorError.duplicateLazyService(let duplicatedServiceName) {
            XCTAssertEqual(duplicatedServiceName, serviceName)
        } catch {
            XCTFail("💥: Got unexpected error `\(error)`")
        }

