@Test
public void mockViewWithResources() {

    Resources resources = mock(Resources.class);
    View view = AndroidMocks.mockView(resources);
    assertThat(view).isNotNull();
    assertThat(view.getResources()).isEqualTo(resources);
}