protected ApiResponse makePostUploadRequest(URI uri, File fileToUpload, String paramName, Map<String, String> additionalHeaders)
throws Exception {
FileBody fileBodyToUpload = new FileBody(fileToUpload);
String mimeType = new MimetypesFileTypeMap().getContentType(fileToUpload);
Context context =
apiTest.post(uri, null, new PostUploadWithoutRedirectImpl(paramName,
fileBodyToUpload), additionalHeaders);
docTestMachine.sayUploadRequest(context.apiRequest, fileBodyToUpload.getFilename(),
fileHelper.readFile(fileToUpload), fileToUpload.length(), mimeType, headersToShow,