### Question:
OAuth2Utils { static boolean matchesUri(final URI originalUri, final URI uri) { final URI pathOnly = withoutQueryAndFragment(uri); final URI requestPathOnly = withoutQueryAndFragment(originalUri); return pathOnly.equals(requestPathOnly); } private  OAuth2Utils(); static URI appendQuery(final URI uri, final Form query);  }### Answer:
@Test public void shouldMatchesAgainstOriginalUri() throws Exception { assertThat(OAuth2Utils.matchesUri(ORIGINAL_URI, new URI("http: }
@Test public void shouldMatchesIgnoringQueryAndFragments() throws Exception { assertThat(OAuth2Utils.matchesUri(ORIGINAL_URI, new URI("http: )).isTrue(); }
@Test public void shouldNotMatchesDifferentBaseUri() throws Exception { assertThat(OAuth2Utils.matchesUri(ORIGINAL_URI, new URI("http: }