title: JUnit testing for Android app with fragments
body: <p>My Android App was built on Single Activity, multiple fragments based model.
  I need to do unit testing for the app. I could write unit testcases for app which contains all activities using ActivityInstrumentationTestCase2 JUnit but not for app which contains fragments.
  Please suggest the way to write JUnit testcases for fragments.</p>
  
  <p>Thank you</p>