@Test
public void mockTextViewWithResource() {

    Resources resources = mock(Resources.class);
    TextView textView = AndroidMocks.mockTextView(resources);
    assertThat(textView).isNotNull();
    assertThat(textView.getResources()).isEqualTo(resources);
}