### Question:
OAuth2Utils { static URI buildUri(final Context context, final Request request, final Expression<String> uriExpression) throws ResponseException { return buildUri(context, request, uriExpression, null); } private  OAuth2Utils(); static URI appendQuery(final URI uri, final Form query);  }### Answer:
@Test public void shouldBuildUriUsingOriginalUri() throws Exception { URI uri = OAuth2Utils.buildUri(buildContextChain(), null, Expression.valueOf("/openid", String.class)); assertThat(uri).isEqualTo(new URI("http: }
@Test public void shouldNotChangeUriWhenExpressionIsAbsoluteUri() throws Exception { URI uri = OAuth2Utils.buildUri(buildContextChain(), null, Expression.valueOf("http: assertThat(uri).isEqualTo(new URI("http: }
@Test(expectedExceptions = ResponseException.class) public void shouldFailIfComputedUriIsNotValid() throws Exception { OAuth2Utils.buildUri(buildContextChain(), null, Expression.valueOf("http: }