If the filename is not in the content dispostion of the file part some HTTP or REST servers don't recognize the multipart file uplaod correctly. Add the part like this:
upload.addFormData("source", source, new MediaType("application", "pdf"), "test.pdf");