Program: 7019
Project: 7019
Buggy source:
@Test public void testStreamPath() throws Exception {
  String streamPath="String_Node_Str";
  HttpRequest httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  String result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
}

Fixed version (ground truth):
@Test public void testStreamPath() throws Exception {
  String streamPath="String_Node_Str";
  HttpRequest httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  String result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.APP_FABRIC_HTTP,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
  streamPath="String_Node_Str";
  httpRequest=new DefaultHttpRequest(VERSION,new HttpMethod("String_Node_Str"),streamPath);
  result=pathLookup.getRoutingService(FALLBACKSERVICE,streamPath,httpRequest);
  Assert.assertEquals(Constants.Service.STREAMS,result);
}