resource = client.resource("http://localhost:"+restPort);
ViewBean view = resource.path("/hicc/v1/view/vid/test").header("Authorization", authorization).get(ViewBean.class);
view.setPermissionType("private");
client = Client.create();
resource = client.resource("http://localhost:"+restPort);
ReturnCodeBean result = (ReturnCodeBean) resource.path("/hicc/v1/view").
header("Content-Type","application/json").
header("Authorization", authorization).
put(ReturnCodeBean.class, view);
assertEquals(1, result.getCode());
}