@Test
public void testParcelable() {

  ArrayList<StreamKey> streamKeys = new ArrayList<>();
  streamKeys.add(new StreamKey(1, 2, 3));
  streamKeys.add(new StreamKey(4, 5, 6));
  DownloadRequest requestToParcel =
      new DownloadRequest(
          "id",
          "type",
          Uri.parse("https://abc.def/ghi"),
          streamKeys,
          "key",
          new byte[] {1, 2, 3, 4, 5});
  Parcel parcel = Parcel.obtain();
  requestToParcel.writeToParcel(parcel, 0);
  parcel.setDataPosition(0);
  DownloadRequest requestFromParcel = DownloadRequest.CREATOR.createFromParcel(parcel);
  assertThat(requestFromParcel).isEqualTo(requestToParcel);
  parcel.recycle();
}