}
}
@Test
public void testUpdateComment() throws Exception {
final BoxComment comment = addComment();
try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.commentId", comment.getId());
// parameter type is com.box.boxjavalibv2.requests.requestobjects.BoxCommentRequestObject
final BoxCommentRequestObject requestObject =
BoxCommentRequestObject.updateCommentRequestObject("Camel was here, again!");
headers.put("CamelBox.commentRequest", requestObject);
BoxComment result = requestBodyAndHeaders("direct://UPDATECOMMENT", null, headers);
LOG.debug("updateComment: " + result);
} finally {
deleteComment(comment.getId());
}