### Question:
MergedJavaScriptBuilder extends MergedResourceBuilder { public MergedJavaScriptBuilder addLibrary(String libraryName) { Args.notNull(libraryName, "libraryName"); getDependencyLocator().findLibraryScripts(libraryName, this.deps); return this; } MergedJavaScriptBuilder(); MergedJavaScriptBuilder setPath(String path); MergedJavaScriptBuilder addScript(Class<?> scope, String path); MergedJavaScriptBuilder addScript(ResourceReference ref); MergedJavaScriptBuilder addAssociatedScript(Class<?> cls); MergedJavaScriptBuilder addJQueryUI(); MergedJavaScriptBuilder addWicketAjaxLibraries(); MergedJavaScriptBuilder addLibrary(String libraryName);  }### Answer:
@Test(expected=IllegalStateException.class) public void testMissingPathThrowsException() { MergedJavaScriptBuilder b = new MergedJavaScriptBuilder(); b.addLibrary("jquery"); b.install(new WicketTester().getApplication()); }