### Question:
DownloadHelper { @Nullable public Object getManifest() { if (mediaSource == null) { return null; } assertPreparedWithMedia(); return mediaPreparer.manifest; } DownloadHelper(
      String downloadType,
      Uri uri,
      @Nullable String cacheKey,
      @Nullable MediaSource mediaSource,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      RendererCapabilities[] rendererCapabilities); static DownloadHelper forProgressive(Uri uri); static DownloadHelper forProgressive(Uri uri, @Nullable String cacheKey); static DownloadHelper forDash(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forDash(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forHls(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forHls(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); static DownloadHelper forSmoothStreaming(
      Uri uri, DataSource.Factory dataSourceFactory, RenderersFactory renderersFactory); static DownloadHelper forSmoothStreaming(
      Uri uri,
      DataSource.Factory dataSourceFactory,
      RenderersFactory renderersFactory,
      @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
      DefaultTrackSelector.Parameters trackSelectorParameters); void prepare(Callback callback); void release(); @Nullable Object getManifest(); int getPeriodCount(); TrackGroupArray getTrackGroups(int periodIndex); MappedTrackInfo getMappedTrackInfo(int periodIndex); List<TrackSelection> getTrackSelections(int periodIndex, int rendererIndex); void clearTrackSelections(int periodIndex); void replaceTrackSelections(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addTrackSelection(
      int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters); void addAudioLanguagesToSelection(String... languages); void addTextLanguagesToSelection(
      boolean selectUndeterminedTextLanguage, String... languages); void addTrackSelectionForSingleRenderer(
      int periodIndex,
      int rendererIndex,
      DefaultTrackSelector.Parameters trackSelectorParameters,
      List<SelectionOverride> overrides); DownloadRequest getDownloadRequest(@Nullable byte[] data); DownloadRequest getDownloadRequest(String id, @Nullable byte[] data); static final DefaultTrackSelector.Parameters DEFAULT_TRACK_SELECTOR_PARAMETERS; }### Answer:
@Test public void getManifest_returnsManifest() throws Exception { prepareDownloadHelper(downloadHelper); Object manifest = downloadHelper.getManifest(); assertThat(manifest).isEqualTo(TEST_MANIFEST); }