@Test
public void testGetSegmentStop() {

  assertNotNull(segments);
  for (MediaSegment segment : segments) {
    assertNotNull(segment);
    if (segment.getSegmentStop() != 10
            || segment.getSegmentStop() != 50
            || segment.getSegmentStop() != 120) {
      fail("MediaSegment returned invalid stop position!");
    }
  }
}