try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.fileId", boxFile.getId());
// parameter type is com.box.restclientv2.requestsbase.BoxFileUploadRequestObject
final BoxFileUploadRequestObject requestObject =
BoxFileUploadRequestObject.uploadNewVersionRequestObject(CAMEL_TEST_FILE,
getClass().getResourceAsStream(TEST_UPLOAD_FILE));
final FileTransferListener fileTransferListener = new FileTransferListener();
requestObject.setListener(fileTransferListener);
headers.put("CamelBox.fileUploadRequest", requestObject);
BoxFile result = requestBodyAndHeaders("direct://UPLOADNEWVERSION", null, headers);
assertTransferSuccess(fileTransferListener);