### Question:
Git { public static String clone(String URL) throws Exception { File tempDirectory = new File(Configuration.getTemporaryDirectory() + "/" + Calendar.getInstance().getTime().getTime() + ""); Main.printLine("[Info] Cloning from \"" +URL+ "\""); ProcessBuilder builder = new ProcessBuilder("git","clone", URL, tempDirectory.getAbsolutePath()); Process process = null; process = builder.start(); process.waitFor(); int exitValue = process.exitValue(); process.destroy(); if (exitValue == 0) { Main.printLine("[Info] Cloning succesfull!"); return tempDirectory.getAbsolutePath(); } else { throw new Exception(exitValue + ""); } }  static String clone(String URL); static boolean checkout(String repositoryDirectory, String commitOrBranch);  }### Answer:
@Test public void testCloningFail() { boolean exceptionThrown = false; try { Git.clone("https: } catch (Exception e) { exceptionThrown = true; } assertTrue(exceptionThrown); }