@Test
public void testGetDurationUs_forKnownInputLength_returnCorrectDuration() {

  constantBitrateSeekMap =
      new ConstantBitrateSeekMap(
          /* inputLength= */ 2_300,
          /* firstFrameBytePosition= */ 100,
          /* bitrate= */ 8_000,
          /* frameSize= */ 100);
  // Bitrate = 8000 (bits/s) = 1000 (bytes/s)
  // FrameSize = 100 (bytes), so 1 frame = 1s = 100_000 us
  // Input length = 2300 (bytes), first frame = 100, so duration = 2_200_000 us.
  assertThat(constantBitrateSeekMap.getDurationUs()).isEqualTo(2_200_000);
}