@Test(expected = RuntimeException.class)
public void testDownloadThrowsException() throws Exception {

    JarScanner scanner = new JarScanner();
    scanner.download(Collections.singletonList(JarScannerTest.class.getResource("/dummy1.jar").toString()));
}