### Question:
Bootstrap { protected final void loadClass(String args[]) { try { addSystemProperties(); addClassPathEntries(); ClassLoader cl = new URLClassLoader(classpath.toArray(new URL[classpath.size()])); Thread.currentThread().setContextClassLoader(cl); Class appClass = cl.loadClass(getClassToLoad()); Object app = appClass.newInstance(); Method m = app.getClass().getMethod(getMethodToInvoke(), new Class[] { String[].class }); m.invoke(app, new Object[] { args }); } catch (Exception ex) { ex.printStackTrace(); System.exit(1); } }  static void main(String args[]);  }### Answer:
@Test(expectedExceptions = ClassNotFoundException.class) public void testLoadClassException() throws Exception { ClassLoader cl = new URLClassLoader(new URL[0]); assertNotNull(cl); cl.loadClass("simple.test.class"); }