### Question:
Downloader implements Worker<DownloadProcessUnit> { public Object getPoolSize() { return ((ThreadPoolExecutor) this.mDownloadingThreads).getMaximumPoolSize(); } Downloader(int inMaxNbDownloadProcesses, int inMaxRunningDownloads, boolean isFree); void process(DownloadProcessUnit inUnit); Object getPoolSize();  }### Answer:
@Test public void testTooBigDownload() { final DownloadJobProcessor theProcessor = new DownloadJobProcessor(1, "Download Test", true); final ThreadWatcher theLatch = new ThreadWatcher(); final DownloadProcessUnit theProcessUnit = new DownloadProcessUnit("idXml", "the Title", "http: theProcessUnit.setThreadWatcher(theLatch); theProcessUnit.startWatching(); Assert.assertEquals(Constantes.MAX_DOWNLOADING_THREADS, theProcessor.getWorker().getPoolSize()); theProcessor.addJob(theProcessUnit); theLatch.await(); Assert.assertNull(theProcessUnit.getResult()); }