### Question:
WebjarUriLocator implements UriLocator { public static String createUri(final String path) { notNull(path); return PREFIX + path; }  static String createUri(final String path); @Override InputStream locate(final String uri); @Override boolean accept(final String uri); static final String ALIAS; static final String PREFIX; }### Answer:
@Test public void shouldCreateValidUri() { assertEquals("webjar:/path/to/resource.js", WebjarUriLocator.createUri("/path/to/resource.js")); }
@Test(expected = NullPointerException.class) public void cannotCreateValidUriFromNullArgument() { WebjarUriLocator.createUri(null); }