title: Xcode UI testing for external launching
body: <p>Hope the title isn't too vague.  In the app I am testing, certain app-flow launches external apps (like Safari or Facebook for example).  How can I verify that the app launched them with a UI test?  I can test for like an openURL with a unit test but is there an equivalent for UI?  </p>
  
  <p>I'm not trying to actually continue after leaving the app, just to test and ensure the appropriate new app or URL was launched.  The simulator/recorder can select UI elements from the launched application, but the test breaks at that point of the code.  I also tried getting a handle to something on the menu bar (always present in the app, like a hamburger button) while it was there and then checking for it after launching the other app (to make sure it wasn't there).  But that broke the test as well.</p>
  
  <p>Is there a work around?  Or is this just something to be tested by a Unit Test?</p>