{
String uri = generateURL("/Application/user.txt");
Form loginform = new Form()
.param("client_id", "wburke")
.param("Password", "userpassword");
AccessTokenResponse res = client.target(realmInfo.getGrantUrl()).request().post(Entity.form(loginform), AccessTokenResponse.class);
String token = res.getToken();
String txt = client.target(uri).request().header(HttpHeaders.AUTHORIZATION, "Bearer " + token).get(String.class);
Response response = client.target(generateURL("/Application/admin.txt")).request().header(HttpHeaders.AUTHORIZATION, "Bearer " + token).get();
Assert.assertEquals(403, response.getStatus());
}