Android unit test to test if setContentView() is called in onCreate()
===

Let's say I have this activity with onCreate method like this:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_view);
    }

And I have a test class that extends ActivityInstrumentationTestCase2. How do I test if setContentView is called and set to the right resource once I call onCreate(null) on the activity in test?