### Question:
IllustrationVideoView extends TextureView implements Animatable,
        TextureView.SurfaceTextureListener,
        MediaPlayer.OnPreparedListener,
        MediaPlayer.OnSeekCompleteListener,
        MediaPlayer.OnInfoListener { public void setVideoResource(@RawRes int resId) { if (resId != mVideoResId) { mVideoResId = resId; createMediaPlayer(); } } IllustrationVideoView(Context context, AttributeSet attrs); void setVideoResource(@RawRes int resId); @Override void onWindowFocusChanged(boolean hasWindowFocus); void release(); @Override void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int width, int height); @Override void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int width, int height); @Override boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture); @Override void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture); @Override void start(); @Override void stop(); @Override boolean isRunning(); @Override boolean onInfo(MediaPlayer mp, int what, int extra); @Override void onPrepared(MediaPlayer mp); @Override void onSeekComplete(MediaPlayer mp); int getCurrentPosition();  }### Answer:
@Test public void testSetVideoResId() { createDefaultView(); @RawRes int black = android.R.color.black; mView.setVideoResource(black); assertEquals(android.R.color.black, ShadowMockMediaPlayer.sResId); }