final Response userAuthResponse = ClientBuilder.newClient().target(authUri).request().get();
Assert.assertEquals(200, userAuthResponse.getStatus());
final String verifier = userAuthResponse.readEntity(String.class);
System.out.println("Verifier: " + verifier);
final AccessToken accessToken = authFlow.finish(verifier);
final Client authorizedClient = authFlow.getAuthorizedClient();
Response response = authorizedClient.target(getBaseUri()).path("resource")
.request().get();
Assert.assertEquals(200, response.getStatus());