@Test public void welcomeTextClickShouldToastUser() throws Exception { TextView welcomeText = (TextView) activity.findViewById(R.id.welcome_text_view); welcomeText.performClick(); assertThat(getTextOfLatestToast(), equalTo(getResourceString(R.string.WELCOME_TOAST))); }