@Test
public void testGetLicenseDurationRemainingSec() throws Exception {

  long licenseDuration = 1000;
  int playbackDuration = 200;
  setStubLicenseAndPlaybackDurationValues(licenseDuration, playbackDuration);
  setDefaultStubKeySetId();
  byte[] offlineLicenseKeySetId = offlineLicenseHelper.downloadLicense(newDrmInitData());
  Pair<Long, Long> licenseDurationRemainingSec =
      offlineLicenseHelper.getLicenseDurationRemainingSec(offlineLicenseKeySetId);
  assertThat(licenseDurationRemainingSec.first).isEqualTo(licenseDuration);
  assertThat(licenseDurationRemainingSec.second).isEqualTo(playbackDuration);
}