Mocking in Swift for XCTest
<p>I am writing test cases for my project which is mix up with Objective C as well as Swift code. I am aware about OCMock framework which I have used previously for mocking/Stubbing for writing Test cases in Objective C.
But I googled and found that it doesn't support fully for swift, since it is based on Objective C runtime. 
I am trying to write test cases in swift language. Is there way I can do mocking/Stubbing for service level layer. For eg.</p>

<pre><code> func getPersonData(id:String, success: (ReponseEnum) -&gt; Void, failure: (error: NSError) -&gt; Void) {


                let requestPara:NSDictionary =  ["id": id]

                let manager: MyRequestManager = MyRequestManager.sharedManager()

                //MyRequestManager is nothing but AFNetworking class 
                let jsonRequest
                /// Service request creation code here


                // Service Call

                manager.POST(url, parameters: jsonRequest, success: { (task: NSURLSessionDataTask!, responseObject: AnyObject!) -&gt; () in

                    // Some business logic
                    //success block call
                    success (successEnum)



                }) {(task: NSURLSessionDataTask!, error: NSError!) -&gt; () in

                    // failure block call
                    failure (failureEnum)

                }
    }
</code></pre>

<p>Here how to mock post method call for dummy responseObject So I can write test cases?</p>