PlayerController { void onPause() { isPlaying = videoView.isPlaying(); seekPosition = videoView.getCurrentPosition(); videoView.pause(); } PlayerController(View rootView, SwipeToDismissTouchListener.Callback callback);   PlayerController(View rootView, VideoView videoView, VideoControlView videoControlView,
            ProgressBar videoProgressView, TextView callToActionView,
            SwipeToDismissTouchListener.Callback callback);   }
@Test public void testOnPause() { when(videoView.getCurrentPosition()).thenReturn(TEST_SEEK_POSITION); when(videoView.isPlaying()).thenReturn(true); subject.onPause(); verify(videoView).getCurrentPosition(); verify(videoView).isPlaying(); assertEquals(true, subject.isPlaying); assertEquals(TEST_SEEK_POSITION, subject.seekPosition); }