title: Unit Testing HTTP traffic in Alamofire app
body: <p>I'm struggling a bit to figure out how to best test an app that uses Alamofire to help sync with server data.</p>
  
  <p>I want to be able to test my code that uses Alamofire and processes JSON responses from a server.
  I'd like to mock those tests so that I can feed the expected response data to those tests without incurring real network traffic.</p>
  
  <p>This blog post (<a href="http://nshipster.com/xctestcase/" rel="noreferrer">http://nshipster.com/xctestcase/</a>) describes how easy it is to Mock an object in Swift - but I'm not sure how to do that with Alamofire and its chained responses.</p>
  
  <p>Would I mock the Manager? the Request? Response? Any help would be appreciated!</p>