UriPatternOrderedMatcher implements LookupRegistry<T> { @Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); } UriPatternOrderedMatcher(); synchronized Set<Entry<String, T>> entrySet(); @Override synchronized void register(final String pattern, final T obj); @Override synchronized void unregister(final String pattern); @Override synchronized T lookup(final String path); @Override String toString();  }
@Test(expected=NullPointerException.class) public void testRegisterNull() throws Exception { final LookupRegistry<Object> matcher = new UriPatternOrderedMatcher<>(); matcher.register(null, null); }
@Test(expected=NullPointerException.class) public void testRegisterInvalidInput() throws Exception { final LookupRegistry<Object> matcher = new UriPatternOrderedMatcher<>(); matcher.register(null, null); }