@Test
public void updateDurationWidget_whenBelowThresholdForHidingVideoDuration_shouldShowThanksForWatching() throws Exception {

    final TextView durationWidgetTextView = getDurationWidgetTextView();
    assertThat(durationWidgetTextView.getText()).isEqualTo("");
    subject.updateDurationWidget(50000);
    assertThat(durationWidgetTextView.getText()).isEqualTo("Ends in 50 seconds");
    // 200ms of remaining video is the cut off for switching to "Thanks for watching"
    subject.updateDurationWidget(200);
    assertThat(durationWidgetTextView.getText()).isEqualTo("Ends in 1 seconds");
    subject.updateDurationWidget(199);
    assertThat(durationWidgetTextView.getText()).isEqualTo("Thanks for watching");
}