@Test public void fileDownloadTestOnMac() throws InterruptedException { File f = new File(c.getDownloadFullPath()); f.mkdir(); int before = (int) FileUtils.sizeOfDirectory(f); try { c.fileDownload(url, null); } catch (Exception e) { LOG.info(e.toString() + '\n' + e.getStackTrace()[0].toString()); } int after = (int) FileUtils.sizeOfDirectory(f); assertTrue(after > before); }