### Question:
MergedJavaScriptBuilder extends MergedResourceBuilder { public MergedJavaScriptBuilder setPath(String path) { return (MergedJavaScriptBuilder) super.setPath(path); } 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 testMissingResourceThrowsException() { MergedJavaScriptBuilder b = new MergedJavaScriptBuilder(); b.setPath("/scripts/all.js"); b.install(new WicketTester().getApplication()); }