@Test
public void updateSessions_withoutMediaPeriodId_createsNewSession() {

  Timeline timeline = new FakeTimeline(/* windowCount= */ 1);
  EventTime eventTime = createEventTime(timeline, /* windowIndex= */ 0, /* mediaPeriodId */ null);
  sessionManager.updateSessions(eventTime);
  verify(mockListener).onSessionCreated(eq(eventTime), anyString());
  verify(mockListener).onSessionActive(eq(eventTime), anyString());
  verifyNoMoreInteractions(mockListener);
}