 
             it("uses correct URL") {
                 var requestedURL: String?
-                let endpointResolution: MoyaProvider<StructTarget>.RequestClosure = { endpoint, done in
+                let endpointResolution: MoyaProvider<MultiTarget>.RequestClosure = { endpoint, done in
                     requestedURL = endpoint.URL
                     if let urlRequest = endpoint.urlRequest {
                         done(.success(urlRequest))


            it("uses correct sample data") {
                var dataString: String?
                let provider = MoyaProvider<StructTarget>(stubClosure: MoyaProvider.immediatelyStub)

                waitUntil { done in
                    _ = provider.request(StructTarget(StructAPI())) { result in
                        if case let .success(response) = result {
                            dataString = String(data: response.data, encoding: .utf8)
                        }

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

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