### Question:
JavascriptWebResource extends AbstractWebResourceFormatter { public boolean matches(String name) { return name != null && name.endsWith(JAVA_SCRIPT_EXTENSION); }  boolean matches(String name); String formatResource(String url, Map<String, String> params);  }### Answer:
@Test public void testMatches() { assertTrue(javascriptWebResource.matches("blah.js")); assertFalse(javascriptWebResource.matches("blah.css")); }