return response;
}
protected Response makePostUploadRequest(URI uri, File fileToUpload, String paramName)
throws Exception {
FileBody fileBodyToUpload = new FileBody(fileToUpload);
String mimeType = new MimetypesFileTypeMap().getContentType(fileToUpload);
docTestMachine.sayUploadRequest(uri, HTTP_REQUEST.POST, fileBodyToUpload.getFilename(),
fileHelper.readFile(fileToUpload), fileToUpload.length(), mimeType);
Response response =
new Response(apiTest.post(uri, null, new PostUploadWithoutRedirectImpl(paramName,
fileBodyToUpload)));
docTestMachine.sayResponse(response.httpStatus, response.payload);