Buggy code:
public class RequestPartMethodArgumentResolverTests { private RequestPartMethodArgumentResolver resolver ; private HttpMessageConverter < RequestPartMethodArgumentResolverTests . SimpleBean > messageConverter ; private MultipartFile multipartFile1 ; private MultipartFile multipartFile2 ; private MethodParameter paramRequestPart ; private MethodParameter paramNamedRequestPart ; private MethodParameter paramValidRequestPart ; private MethodParameter paramMultipartFile ; private MethodParameter paramMultipartFileList ; private MethodParameter paramInt ; private MethodParameter paramMultipartFileNotAnnot ; private MethodParameter paramServlet30Part ; private MethodParameter paramRequestParamAnnot ; private NativeWebRequest webRequest ; private MockMultipartHttpServletRequest multipartRequest ; private MockHttpServletResponse servletResponse ; @ SuppressWarnings ( "unchecked" ) @ Before public void setUp ( ) throws Exception { } @ Test public void supportsParameter ( ) { } @ Test public void resolveMultipartFile ( ) throws Exception { } @ Test public void resolveMultipartFileList ( ) throws Exception { } @ Test public void resolveMultipartFileNotAnnotArgument ( ) throws Exception { } @ Test public void resolveServlet30PartArgument ( ) throws Exception { } @ Test public void resolveRequestPart ( ) throws Exception { } @ Test public void resolveNamedRequestPart ( ) throws Exception { } @ Test public void resolveRequestPartNotValid ( ) throws Exception { } @ Test public void resolveRequestPartValid ( ) throws Exception { } @ Test public void resolveRequestPartRequired ( ) throws Exception { } @ Test public void resolveRequestPartNotRequired ( ) throws Exception { } @ Test ( expected = MultipartException . class ) public void notMultipartRequest ( ) throws Exception { } private void testResolveArgument ( RequestPartMethodArgumentResolverTests . SimpleBean argValue , MethodParameter parameter ) throws IOException , Exception { MediaType contentType = MediaType . TEXT_PLAIN ; multipartRequest . addHeader ( "Content-Type" , contentType . toString ( ) ) ; expect ( messageConverter . canRead ( RequestPartMethodArgumentResolverTests . SimpleBean . class , contentType ) ) . andReturn ( true ) ; expect ( messageConverter . read ( eq ( RequestPartMethodArgumentResolverTests . SimpleBean . class ) , isA ( RequestPartServletServerHttpRequest . class ) ) ) . andReturn ( argValue ) ; replay ( messageConverter ) ; ModelAndViewContainer mavContainer = new ModelAndViewContainer ( ) ; Object actualValue = resolver . resolveArgument ( parameter , mavContainer , webRequest , new RequestPartMethodArgumentResolverTests . ValidatingBinderFactory ( ) ) ; assertEquals ( "Invalid<seq2seq4repair_space>argument<seq2seq4repair_space>value" , argValue , actualValue ) ; <START_BUG> assertTrue ( "The<seq2seq4repair_space>ResolveView<seq2seq4repair_space>flag<seq2seq4repair_space>shouldn't<seq2seq4repair_space>change" , mavContainer . isResolveView ( ) ) ; <END_BUG> verify ( messageConverter ) ; } private static class SimpleBean { @ NotNull private final String name ; public SimpleBean ( String name ) { } @ SuppressWarnings ( "unused" ) public String getName ( ) { } } private final class ValidatingBinderFactory implements WebDataBinderFactory { public WebDataBinder createBinder ( NativeWebRequest webRequest , Object target , String objectName ) throws Exception { } } public void handle ( @ RequestPart RequestPartMethodArgumentResolverTests . SimpleBean requestPart , @ RequestPart ( value = "requestPart" , required = false ) RequestPartMethodArgumentResolverTests . SimpleBean namedRequestPart , @ Valid @ RequestPart ( "requestPart" ) RequestPartMethodArgumentResolverTests . SimpleBean validRequestPart , @ RequestPart ( "requestPart" ) MultipartFile multipartFile , @ RequestPart ( "requestPart" ) List < MultipartFile > multipartFileList , int i , MultipartFile multipartFileNotAnnot , Part servlet30Part , @ RequestParam MultipartFile requestParamAnnot ) { } }

Fix:
assertFalse ( "The<seq2seq4repair_space>requestHandled<seq2seq4repair_space>flag<seq2seq4repair_space>shouldn't<seq2seq4repair_space>change" , mavContainer . isRequestHandled ( ) ) ;