### Question:
MultipartController { @RequestMapping( value = "api/v1/multipart", method = RequestMethod.PUT, consumes = MediaType.MULTIPART_FORM_DATA_VALUE) public UploadFileResponse uploadFileWithPut(@RequestParam("file") MultipartFile file) { return new UploadFileResponse(file.getOriginalFilename(), file.getContentType(), file.getSize()); }  @RequestMapping( value = "api/v1/multipart", method = RequestMethod.POST, consumes = MediaType.MULTIPART_FORM_DATA_VALUE) UploadFileResponse uploadFileWithPost(@RequestParam("file") MultipartFile file); @RequestMapping( value = "api/v1/multipart", method = RequestMethod.PUT, consumes = MediaType.MULTIPART_FORM_DATA_VALUE) UploadFileResponse uploadFileWithPut(@RequestParam("file") MultipartFile file);  }### Answer:
@Test public void shouldSubmitWithPutAndReturnString() { MockMultipartFile file = new MockMultipartFile("file", "hello.txt", MediaType.TEXT_PLAIN_VALUE, "Hello, World!".getBytes()); UploadFileResponse uploadFileResponse = multipartController.uploadFileWithPut(file); assertEquals("hello.txt", uploadFileResponse.getFileName()); assertEquals("text/plain", uploadFileResponse.getFileType()); assertEquals(13, uploadFileResponse.getSize()); }