@Test
public void testGetSegmentsFromSmil() throws Exception {

  List<Tuple<Long, Long>> segments = endpoint.getSegmentsFromSmil(smil);
  assertEquals(4, segments.size());
  assertTrue(segments.contains(Tuple.tuple(0L, 2449L)));
  assertTrue(segments.contains(Tuple.tuple(4922L, 11284L)));
  assertTrue(segments.contains(Tuple.tuple(14721L, 15963L)));
  assertTrue(segments.contains(Tuple.tuple(15963L, 20132L)));
}