static expectSegmentToEqual(actual, expected) {
    expect(actual.data).toBeTruthy();
    expect(expected.data).toBeTruthy();

    const actualData = shaka.util.BufferUtils.toUint8(actual.data);
    const expectedData = shaka.util.BufferUtils.toUint8(expected.data);

    expect(actualData).toEqual(expectedData);
  }
@param {shaka.extern.SegmentDataDB} actual
@param {shaka.extern.SegmentDataDB} expected