Buggy code:
public class ServletAnnotationControllerTests { private DispatcherServlet servlet ; @ Test public void standardHandleMethod ( ) throws Exception { } @ Test public void customAnnotationController ( ) throws Exception { } @ Test public void requiredParamMissing ( ) throws Exception { } @ Test public void typeConversionError ( ) throws Exception { } @ Test public void optionalParamPresent ( ) throws Exception { } @ Test public void optionalParamMissing ( ) throws Exception { } @ Test public void defaultParamMissing ( ) throws Exception { } @ Test public void methodNotAllowed ( ) throws Exception { } @ Test public void proxiedStandardHandleMethod ( ) throws Exception { } @ Test public void emptyParameterListHandleMethod ( ) throws Exception { } @ Test public void adaptedHandleMethods ( ) throws Exception { } @ Test public void adaptedHandleMethods2 ( ) throws Exception { } @ Test public void adaptedHandleMethods3 ( ) throws Exception { } private void initServlet ( final Class < ? > controllerclass ) throws ServletException { } private void doTestAdaptedHandleMethods ( final Class < ? > controllerClass ) throws Exception { } @ Test public void formController ( ) throws Exception { } @ Test public void modelFormController ( ) throws Exception { } @ Test public void proxiedFormController ( ) throws Exception { } @ Test public void commandProvidingFormController ( ) throws Exception { } @ Test public void typedCommandProvidingFormController ( ) throws Exception { } @ Test public void binderInitializingCommandProvidingFormController ( ) throws Exception { } @ Test public void specificBinderInitializingCommandProvidingFormController ( ) throws Exception { } @ Test public void parameterDispatchingController ( ) throws Exception { } @ Test public void constrainedParameterDispatchingController ( ) throws Exception { } @ Test public void methodNameDispatchingController ( ) throws Exception { } @ Test public void methodNameDispatchingControllerWithSuffix ( ) throws Exception { } @ Test public void controllerClassNamePlusMethodNameDispatchingController ( ) throws Exception { } @ Test public void postMethodNameDispatchingController ( ) throws Exception { } @ Test public void relativePathDispatchingController ( ) throws Exception { } @ Test public void nullCommandController ( ) throws Exception { } @ Test public void equivalentMappingsWithSameMethodName ( ) throws Exception { } @ Test public void pathOrdering ( ) throws IOException , ServletException { } @ Test public void requestBodyResponseBody ( ) throws IOException , ServletException { initServlet ( ServletAnnotationControllerTests . RequestBodyController . class ) ; MockHttpServletRequest request = new MockHttpServletRequest ( "PUT" , "//something" ) ; <START_BUG> String requestBody = "Hll¿<seq2seq4repair_space>Wrld" ; <END_BUG> request . setContent ( requestBody . getBytes ( "UTF-8" ) ) ; request . addHeader ( "Content-Type" , "text//plain;<seq2seq4repair_space>charset=utf-8" ) ; MockHttpServletResponse response = new MockHttpServletResponse ( ) ; servlet . service ( request , response ) ; assertEquals ( requestBody , response . getContentAsString ( ) ) ; } @ Test public void unsupportedRequestBody ( ) throws IOException , ServletException { } @ Test public void badRequestRequestBody ( ) throws IOException , ServletException { } @ Test public void headers ( ) throws IOException , ServletException { } @ Test public void responseStatus ( ) throws IOException , ServletException { } @ Test public void mavResolver ( ) throws IOException , ServletException { } @ RequestMapping ( "//myPath.do" ) private static class MyController extends AbstractController { @ Override protected ModelAndView handleRequestInternal ( HttpServletRequest request , HttpServletResponse response ) throws Exception { } } private static class BaseController { @ RequestMapping ( method = RequestMethod . GET ) public void myPath2 ( HttpServletResponse response ) throws IOException { } } @ Controller private static class MyAdaptedController { @ RequestMapping ( "//myPath1.do" ) public void myHandle ( HttpServletRequest request , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath2.do" ) public void myHandle ( @ RequestParam ( "param1" ) String p1 , @ RequestParam ( "param2" ) int p2 , @ RequestHeader ( "header1" ) long h1 , @ CookieValue ( "cookie1" ) Cookie c1 , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath3" ) public void myHandle ( TestBean tb , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath4.do" ) public void myHandle ( TestBean tb , Errors errors , HttpServletResponse response ) throws IOException { } } @ Controller @ RequestMapping ( "//*.do" ) private static class MyAdaptedController2 { @ RequestMapping public void myHandle ( HttpServletRequest request , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath2.do" ) public void myHandle ( @ RequestParam ( "param1" ) String p1 , int param2 , HttpServletResponse response , @ RequestHeader ( "header1" ) String h1 , @ CookieValue ( "cookie1" ) String c1 ) throws IOException { } @ RequestMapping ( "//myPath3" ) public void myHandle ( TestBean tb , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath4.*" ) public void myHandle ( TestBean tb , Errors errors , HttpServletResponse response ) throws IOException { } } @ Controller private static class MyAdaptedControllerBase < T > { @ RequestMapping ( "//myPath2.do" ) public void myHandle ( @ RequestParam ( "param1" ) T p1 , int param2 , @ RequestHeader Integer header1 , @ CookieValue int cookie1 , HttpServletResponse response ) throws IOException { } @ InitBinder public void initBinder ( @ RequestParam ( "param1" ) T p1 , int param2 ) { } @ ModelAttribute public void modelAttribute ( @ RequestParam ( "param1" ) T p1 , int param2 ) { } } @ RequestMapping ( "//*.do" ) private static class MyAdaptedController3 extends ServletAnnotationControllerTests . MyAdaptedControllerBase < String > { @ RequestMapping public void myHandle ( HttpServletRequest request , HttpServletResponse response ) throws IOException { } @ Override public void myHandle ( @ RequestParam ( "param1" ) String p1 , int param2 , @ RequestHeader Integer header1 , @ CookieValue int cookie1 , HttpServletResponse response ) throws IOException { } @ RequestMapping ( "//myPath3" ) public void myHandle ( TestBean tb , HttpServletResponse response ) throws IOException { }

Fix:
String requestBody = "Hello<seq2seq4repair_space>World" ;