user.setProperty("testKey", "testValue");
JSONArray ja = new JSONArray();
user.setViews(ja);
client = Client.create();
resource = client.resource("http://localhost:"+restPort);
ReturnCodeBean result = resource.path("/hicc/v1/user").
header("Content-Type","application/json").
header("Authorization", authorization).
put(ReturnCodeBean.class, user);
assertEquals(1, result.getCode());
} catch (Exception e) {
fail(ExceptionUtil.getStackTrace(e));
}
}