title: JUnit testing in Android - DialogFragment
body: <p>I have a button in a FragmentActivity which, when pressed should open a DialogFragment.</p>
  
  <p>I want to test that it works using JUnit for Android in Eclipse.</p>
  
  <p>With an Activity I could use ActivityMonitor. How can I test that the correct Fragment has opened when the button is clicked?</p>