@Test public void buttonClickShouldStartNewActivity() throws Exception { Button button = activity.findViewById( R.id.next_screen_button ); button.performClick(); Intent intent = NewActivity.createIntent( activity ); assertThat( activity, new StartedMatcher( intent ) ); }