### Question:
Bootstrap { protected final void addJarFileUrls(File root) throws MalformedURLException { File[] children = root.listFiles(); if (children == null) { return; } for (File child : children) { if (child.isFile() && child.canRead() && child.getName().toLowerCase().endsWith(".jar")) { classpath.add(child.toURI().toURL()); } } }  static void main(String args[]);  }### Answer:
@Test(expectedExceptions = MalformedURLException.class) public void testAddJarFileUrls() throws MalformedURLException { URL obj = new URL("fil: File libFile = new File(obj.toString()); bootstrap.addJarFileUrls(libFile); }