@Test
public void mockViewWithAnimator() {

    ViewPropertyAnimator viewPropertyAnimator = mock(ViewPropertyAnimator.class);
    View view = AndroidMocks.mockView(viewPropertyAnimator);
    assertThat(view).isNotNull();
    assertThat(view.animate()).isEqualTo(viewPropertyAnimator);
}