@Test public void welcomeTextShouldEqualResource() throws Exception { TextView welcomeText = (TextView) activity.findViewById( R.id.welcome_text_view ); assertThat( welcomeText.getText().toString(), equalTo( getResourceString( R.string.WELCOME_STRING ) ) ); }