@Test
public void createProgressiveDownloader() throws Exception {

  DownloaderConstructorHelper constructorHelper =
      new DownloaderConstructorHelper(Mockito.mock(Cache.class), DummyDataSource.FACTORY);
  DownloaderFactory factory = new DefaultDownloaderFactory(constructorHelper);
  Downloader downloader =
      factory.createDownloader(
          new DownloadRequest(
              "id",
              DownloadRequest.TYPE_PROGRESSIVE,
              Uri.parse("https://www.test.com/download"),
              /* streamKeys= */ Collections.emptyList(),
              /* customCacheKey= */ null,
              /* data= */ null));
  assertThat(downloader).isInstanceOf(ProgressiveDownloader.class);
}