ResteasyClient client = new ResteasyClientBuilder().providerFactory(deployment.getProviderFactory()).build();
Response response = client.target(generateURL("/roles")).request().post(Entity.text("admin"));
Assert.assertEquals(response.getStatus(), 201);
response.close();
ResteasyWebTarget target = client.target(response.getLocation());
String role = target.request().get(String.class);
System.out.println(role);
Role u = target.request().get(Role.class);
System.out.println(u);
Assert.assertEquals("admin", u.getName());
Assert.assertEquals(target.request().delete().getStatus(), 204);