@Test
public void create() {

    int expected = service.list(0, 100).size() + 1;
    Response response = WebClient.create("http://localhost:4204/rest-on-ejb")
            .path("/user/create")
            .query("name", "dummy")
            .query("pwd", "unbreakable")
            .query("mail", "foo@bar.fr")
            .put(null);
    List<User> list = service.list(0, 100);
    for (User u : list) {
        if (!users.contains(u)) {
            service.delete(u.getId());
            return;
        }
    }
    fail("user was not added");
}