@Test
public void onPrepared_whenDurationIsLessThanMaxVideoDurationForCloseButton_shouldSetShowCloseButtonDelayToDuration() throws Exception {

    initializeSubject();
    stub(mediaPlayer.getDuration()).toReturn(1000);
    setMediaPlayer(mediaPlayer);
    getShadowVideoView().getOnPreparedListener().onPrepared(null);
    assertThat(subject.getShowCloseButtonDelay()).isEqualTo(1000);
}