### Question:
DownloadImpl implements Download, ComponentExporter { public String getZipFileName() { return StringUtils.removeEndIgnoreCase(zipFileName, ".zip"); }  @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 getZipFileName() { final String expected = "myassets"; ctx.currentResource("/content/download"); final Download download = ctx.request().adaptTo(Download.class); assertEquals(expected, download.getZipFileName()); }
@Test public void getZipFileName_Default() { final String expected = "Assets"; ctx.currentResource("/content/download_empty_zip_name"); final Download download = ctx.request().adaptTo(Download.class); assertEquals(expected, download.getZipFileName()); }
@Test public void getZipFileName_WithExtension() { final String expected = "myassets"; ctx.currentResource("/content/download_with_zip_extension"); final Download download = ctx.request().adaptTo(Download.class); assertEquals(expected, download.getZipFileName()); }