def METHOD_NAME(self):
    intervals = straxen.merge_intervals(self.intervals)
    assert len(intervals) == 2, 'Got the wrong number of intervals!'
    time_is_correct = intervals[0]['time'] == self.intervals['time'][0]
    assert time_is_correct, 'First interval has the wrong time!'
    time_is_correct = intervals[0]['endtime'] == self.intervals['endtime'][-2]
    assert time_is_correct, 'First interval has the wrong endtime!'
    time_is_correct = intervals[-1]['time'] == self.intervals['time'][-1]
    assert time_is_correct, 'Second interval has the wrong time!'
    time_is_correct = intervals[-1]['endtime'] == self.intervals['endtime'][-1]
    assert time_is_correct, 'Second interval has the wrong endtime!'