### Question:
DownloadImpl implements Download, ComponentExporter { @Override public long getDownloadContentSize() { return this.downloadContentSize; }  @Override List<AssetRenditionsGroup> getAssetRenditionsGroups(); Collection<AssetModel> getAssets(); String getZipFileName(); @Override long getMaxContentSize(); @Override long getDownloadContentSize(); @Override String getMaxContentSizeLabel(); @Override String getDownloadContentSizeLabel(); @Nonnull @Override String getExportedType(); static final String PN_ASSET_RENDITIONS_GROUP_TITLE; static final String NN_ASSET_RENDITIONS; static final String NN_ITEMS; }### Answer:
@Test public void getDownloadContentSize() { long expected = 1024L; ctx.currentResource("/content/download"); doReturn(1024L).when(assetDownloadHelper).getAssetDownloadSize(assetModels, ctx.currentResource()); final Download download = ctx.request().adaptTo(Download.class); assertEquals(expected, download.getDownloadContentSize()); }