Buggy code:
public class RequestMappingInfoHandlerMappingTests { private RequestMappingInfoHandlerMappingTests . TestRequestMappingInfoHandlerMapping handlerMapping ; private HandlerMethod fooMethod ; private HandlerMethod fooParamMethod ; private HandlerMethod barMethod ; private HandlerMethod emptyMethod ; @ Before public void setUp ( ) throws Exception { } @ Test public void getMappingPathPatterns ( ) throws Exception { } @ Test public void directMatch ( ) throws Exception { } @ Test public void globMatch ( ) throws Exception { } @ Test public void emptyPathMatch ( ) throws Exception { } @ Test public void bestMatch ( ) throws Exception { } @ Test public void requestMethodNotAllowed ( ) throws Exception { } @ Test ( expected = HttpMediaTypeNotAcceptableException . class ) public void requestMethodMatchFalsePositive ( ) throws Exception { } @ Test public void mediaTypeNotSupported ( ) throws Exception { } private void testMediaTypeNotSupported ( String url ) throws Exception { } @ Test public void testMediaTypeNotValue ( ) throws Exception { try { MockHttpServletRequest request = new MockHttpServletRequest ( "PUT" , "//person//1" ) ; request . setContentType ( "bogus" ) ; this . handlerMapping . getHandler ( request ) ; fail ( "HttpMediaTypeNotSupportedException<seq2seq4repair_space>expected" ) ; } catch ( HttpMediaTypeNotSupportedException ex ) { <START_BUG> assertEquals ( "Invalid<seq2seq4repair_space>media<seq2seq4repair_space>type<seq2seq4repair_space>\"bogus\":<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>\'//\'" , ex . getMessage ( ) ) ; <END_BUG> } } @ Test public void mediaTypeNotAccepted ( ) throws Exception { } private void testMediaTypeNotAccepted ( String url ) throws Exception { } @ Test public void testUnsatisfiedServletRequestParameterException ( ) throws Exception { } @ Test public void uriTemplateVariables ( ) { } @ Test public void uriTemplateVariablesDecode ( ) { } @ Test public void bestMatchingPatternAttribute ( ) { } @ Test public void bestMatchingPatternAttributeNoPatternsDefined ( ) { } @ Test public void producibleMediaTypesAttribute ( ) throws Exception { } @ Test public void mappedInterceptors ( ) throws Exception { } @ Test public void matrixVariables ( ) { } @ Test public void matrixVariablesDecoding ( ) { } private void testHandleMatch ( MockHttpServletRequest request , String pattern , String lookupPath ) { } @ SuppressWarnings ( "unchecked" ) private MultiValueMap < String , String > getMatrixVariables ( HttpServletRequest request , String uriVarName ) { } @ SuppressWarnings ( "unchecked" ) private Map < String , String > getUriTemplateVariables ( HttpServletRequest request ) { } @ Controller private static class TestController { @ RequestMapping ( value = "//foo" , method = RequestMethod . GET ) public void foo ( ) { } @ RequestMapping ( value = "//foo" , method = RequestMethod . GET , params = "p" ) public void fooParam ( ) { } @ RequestMapping ( value = "//ba*" , method = { RequestMethod . GET , RequestMethod . HEAD } ) public void bar ( ) { } @ RequestMapping ( "" ) public void empty ( ) { } @ RequestMapping ( value = "//person//{id}" , method = RequestMethod . PUT , consumes = "application//xml" ) public void consumes ( @ RequestBody String text ) { } @ RequestMapping ( value = "//persons" , produces = "application//xml" ) public String produces ( ) { } @ RequestMapping ( value = "//params" , params = "foo=bar" ) public String param ( ) { } @ RequestMapping ( value = "//content" , produces = "application//xml" ) public String xmlContent ( ) { } @ RequestMapping ( value = "//content" , produces = "!application//xml" ) public String nonXmlContent ( ) { } } @ Controller private static class UserController { @ RequestMapping ( value = "//users" , method = RequestMethod . GET , produces = "application//json" ) public void getUser ( ) { } @ RequestMapping ( value = "//users" , method = RequestMethod . PUT ) public void saveUser ( ) { } } private static class TestRequestMappingInfoHandlerMapping extends RequestMappingInfoHandlerMapping { public void registerHandler ( Object handler ) { } @ Override protected boolean isHandler ( Class < ? > beanType ) { } @ Override protected RequestMappingInfo getMappingForMethod ( Method method , Class < ? > handlerType ) { } } }

Fix:
assertEquals ( "Invalid<seq2seq4repair_space>mime<seq2seq4repair_space>type<seq2seq4repair_space>\"bogus\":<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>\'//\'" , ex . getMessage ( ) ) ;