@Test
public void testLocate() throws Exception {

    final ClosureDependencyUriLocator locator = new ClosureDependencyUriLocator();
    final Resource resource = new Resource();
    resource.setUri(ClosureDependencyUriLocator.URI_PREFIX + "/abc.js@@a");
    assertTrue(locator.accept(resource.getUri()));
    final String actual = IOUtils.toString(locator.locate(resource.getUri()));
    assertEquals("goog.addDependency('" + PATH_TO_WEBAPP_BASE_FROM_CLOSURE_BASE_JS_FILE + "/abc.js', ['a'], []);\n", actual);
}