import com.sun.jersey.api.client.Client;
public class TestUserResource extends SetupTestEnv {
public void testUserSave() {
try {
UserBean user = new UserBean();
user.setId("admin");
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).