}
@Test
public void testUpdateFolderInfo() throws Exception {
// create test folder
final BoxFolder testFolder = createFolder();
try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.folderId", testFolder.getId());
// parameter type is com.box.boxjavalibv2.requests.requestobjects.BoxFolderRequestObject
final BoxFolderRequestObject folderRequestObject = BoxFolderRequestObject.getRequestObject();
folderRequestObject.setTags(new String[]{CAMEL_TEST_TAG});
folderRequestObject.setName(CAMEL_TEST_COPY_FOLDER);
headers.put("CamelBox.folderRequest", folderRequestObject);
BoxFolder result = requestBodyAndHeaders("direct://UPDATEFOLDERINFO", null, headers);
assertNotNull("updateFolderInfo result", result);
assertEquals("updateFolderInfo folder name", CAMEL_TEST_COPY_FOLDER, result.getName());
// assertEquals("updateFolderInfo result", "["+ CAMEL_TEST_TAG + "]", Arrays.toString(result.getTags()));
LOG.debug("updateFolderInfo: " + result);
} finally {
deleteFolder(testFolder.getId());
}