@Test
public void getSegmentsDurationForTwoFiles() throws RuntimeException {

    MediaSource trackWithAudioDuration100 = create.mediaSource().with(
            create.audioFormat().withDuration(100).construct())
        .construct();
    MediaSource trackWithAudioDuration200 = create.mediaSource().with(
        create.audioFormat().withDuration(200).construct())
        .construct();
    MultipleMediaSource multipleMediaSource=create.multipleMediaSource()
        .with(trackWithAudioDuration100)
        .with(trackWithAudioDuration200)
        .construct();
    assertEquals(300, multipleMediaSource.getSegmentsDurationInMicroSec());
}