}
@Ignore("BoxClient SDK has a bug in UpdateCollaborationRequest.java, the URI constant should be collaborations")
@Test
public void testUpdateCollaboration() throws Exception {
final BoxCollaboration collaboration = createCollaboration();
try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.collabId", collaboration.getId());
// parameter type is com.box.boxjavalibv2.requests.requestobjects.BoxCollabRequestObject
final BoxCollabRequestObject requestObject = BoxCollabRequestObject.updateCollabObjects(
BoxCollaborationRole.EDITOR);
headers.put("CamelBox.collabRequest", requestObject);
BoxCollaboration result = requestBodyAndHeaders("direct://UPDATECOLLABORATION", null, headers);
assertNotNull("updateCollaboration result", result);
LOG.debug("updateCollaboration: " + result);
} finally {
deleteCollaboration(collaboration.getId());
}