                         done(.failure(Moya.Error.requestMapping(endpoint.URL)))
                     }
                 }
-                let provider = MoyaProvider<StructTarget>(requestClosure: endpointResolution, stubClosure: MoyaProvider.immediatelyStub)
-
-                waitUntil { done in
-                    _ = provider.request(StructTarget(StructAPI())) { _ in
+                let provider = MoyaProvider<MultiTarget>(requestClosure: endpointResolution, stubClosure: MoyaProvider.immediatelyStub)
+
+                waitUntil { done in
+                    _ = provider.request(MultiTarget(StructAPI())) { _ in
                         done()
                     }
                 }

                        done(.failure(Moya.Error.requestMapping(endpoint.URL)))
                    }
                }
                let provider = MoyaProvider<StructTarget>(requestClosure: endpointResolution, stubClosure: MoyaProvider.immediatelyStub)

                waitUntil { done in
                    _ = provider.request(StructTarget(StructAPI())) { _ in
                        done()
                    }
                }


            it("uses correct method") {
                var requestMethod: Moya.Method?
                let endpointResolution: MoyaProvider<MultiTarget>.RequestClosure = { endpoint, done in
                    requestMethod = endpoint.method
                    if let urlRequest = endpoint.urlRequest {
                        done(.success(urlRequest))
