Program: 8536
Project: 8536
Buggy source:
/** 
 * 正常情况下的系统参数绑定
 * @throws Exception
 */
@Test public void testBuildBySysParams1() throws Exception {
  FormattingConversionService conversionService=mock(FormattingConversionService.class);
  ServletRequestContextBuilder requestContextBuilder=new ServletRequestContextBuilder(conversionService);
  RopContext ropContext=mock(RopContext.class);
  ServiceMethodHandler methodHandler=mock(ServiceMethodHandler.class);
  when(ropContext.getServiceMethodHandler("String_Node_Str","String_Node_Str")).thenReturn(methodHandler);
  MockHttpServletRequest servletRequest=new MockHttpServletRequest();
  servletRequest.setRemoteAddr("String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getAppKey(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getSessionId(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getMethod(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getVersion(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getLocale(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getFormat(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getSign(),"String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  SimpleRequestContext requestContext=requestContextBuilder.buildBySysParams(ropContext,servletRequest);
  assertEquals(requestContext.getIp(),"String_Node_Str");
  assertEquals(requestContext.getAllParams().size(),10);
  assertEquals(requestContext.getParamValue("String_Node_Str"),"String_Node_Str");
  assertEquals(requestContext.getRawRequestObject(),servletRequest);
  assertEquals(requestContext.getAppKey(),"String_Node_Str");
  assertEquals(requestContext.getSessionId(),"String_Node_Str");
  assertEquals(requestContext.getMethod(),"String_Node_Str");
  assertEquals(requestContext.getVersion(),"String_Node_Str");
  assertEquals(requestContext.getLocale(),new Locale("String_Node_Str","String_Node_Str"));
  assertEquals(requestContext.getFormat(),"String_Node_Str");
  assertEquals(requestContext.getMessageFormat(),MessageFormat.xml);
  assertEquals(requestContext.getSign(),"String_Node_Str");
  assertEquals(requestContext.getServiceMethodHandler(),methodHandler);
}

Fixed version (ground truth):
/** 
 * 正常情况下的系统参数绑定
 * @throws Exception
 */
@Test public void testBuildBySysParams1() throws Exception {
  FormattingConversionService conversionService=mock(FormattingConversionService.class);
  ServletRequestContextBuilder requestContextBuilder=new ServletRequestContextBuilder(conversionService);
  RopContext ropContext=mock(RopContext.class);
  ServiceMethodHandler methodHandler=mock(ServiceMethodHandler.class);
  when(ropContext.getServiceMethodHandler("String_Node_Str","String_Node_Str")).thenReturn(methodHandler);
  MockHttpServletRequest servletRequest=new MockHttpServletRequest();
  servletRequest.setParameter(SystemParameterNames.getAppKey(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getSessionId(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getMethod(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getVersion(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getLocale(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getFormat(),"String_Node_Str");
  servletRequest.setParameter(SystemParameterNames.getSign(),"String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  servletRequest.setParameter("String_Node_Str","String_Node_Str");
  SimpleRequestContext requestContext=requestContextBuilder.buildBySysParams(ropContext,servletRequest);
  assertEquals(requestContext.getAllParams().size(),10);
  assertEquals(requestContext.getParamValue("String_Node_Str"),"String_Node_Str");
  assertEquals(requestContext.getRawRequestObject(),servletRequest);
  assertEquals(requestContext.getAppKey(),"String_Node_Str");
  assertEquals(requestContext.getSessionId(),"String_Node_Str");
  assertEquals(requestContext.getMethod(),"String_Node_Str");
  assertEquals(requestContext.getVersion(),"String_Node_Str");
  assertEquals(requestContext.getLocale(),new Locale("String_Node_Str","String_Node_Str"));
  assertEquals(requestContext.getFormat(),"String_Node_Str");
  assertEquals(requestContext.getMessageFormat(),MessageFormat.xml);
  assertEquals(requestContext.getSign(),"String_Node_Str");
  assertEquals(requestContext.getServiceMethodHandler(),methodHandler);
}