Robolectric
@RunWith(RobolectricTestRunner.class)
@Test
public void shouldHaveALogo() throws Exception {
ImageView pivotalLogo = (ImageView) activity.findViewById(R.id.pivotal_logo);
ShadowImageView shadowPivotalLogo = Robolectric.shadowOf(pivotalLogo);
assertThat(shadowPivotalLogo.resourceId, equalTo(R.drawable.pivotallabs_logo));
}