Program: 35796
Project: 35796
Buggy source:
public void testProxy() throws Exception {
  Properties props=new Properties();
  props.setProperty("String_Node_Str","String_Node_Str" + SERVER_PORT);
  props.setProperty("String_Node_Str","String_Node_Str");
  MockDriver provider=new MockDriver("String_Node_Str",props);
  String relUrl="String_Node_Str";
  final ByteArrayOutputStream outByte=new ByteArrayOutputStream();
  ServletOutputStream out=new ServletOutputStream(){
    @Override public void write(    int b) throws IOException {
      outByte.write(b);
    }
  }
;
  HttpServletRequest request=EasyMock.createMock(HttpServletRequest.class);
  EasyMock.expect(request.getCharacterEncoding()).andReturn("String_Node_Str").anyTimes();
  request.setCharacterEncoding("String_Node_Str");
  EasyMock.expect(request.getQueryString()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getSession(false)).andReturn(null).anyTimes();
  EasyMock.expect(request.getMethod()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getRemoteUser()).andReturn(null);
  EasyMock.expect(request.getHeaderNames()).andReturn(Collections.enumeration(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
  HttpServletResponse response=EasyMock.createMock(HttpServletResponse.class);
  response.setStatus(200);
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader((String)EasyMock.anyObject(),(String)EasyMock.anyObject());
  EasyMock.expectLastCall().anyTimes();
  EasyMock.expect(response.getOutputStream()).andReturn(out);
  EasyMock.replay(request,response);
  DriverFactory.getInstance("String_Node_Str").proxy(relUrl,request,response);
  EasyMock.verify(request,response);
  EasyMock.reset(request,response);
  EasyMock.expect(request.getCharacterEncoding()).andReturn("String_Node_Str").anyTimes();
  request.setCharacterEncoding("String_Node_Str");
  EasyMock.expect(request.getQueryString()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getSession(false)).andReturn(null).anyTimes();
  EasyMock.expect(request.getMethod()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getRemoteUser()).andReturn(null);
  EasyMock.expect(request.getHeaderNames()).andReturn(Collections.enumeration(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
  response.setStatus(200);
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader((String)EasyMock.anyObject(),(String)EasyMock.anyObject());
  EasyMock.expectLastCall().anyTimes();
  EasyMock.expect(response.getOutputStream()).andReturn(out);
  EasyMock.replay(request,response);
  DriverFactory.getInstance("String_Node_Str").proxy(relUrl,request,response);
  EasyMock.verify(request,response);
}

Fixed version (ground truth):
public void testProxy() throws Exception {
  Properties props=new Properties();
  props.setProperty("String_Node_Str","String_Node_Str" + SERVER_PORT);
  props.setProperty("String_Node_Str","String_Node_Str");
  File localBase=new File("String_Node_Str");
  localBase.mkdirs();
  props.setProperty("String_Node_Str",localBase.getCanonicalPath());
  MockDriver provider=new MockDriver("String_Node_Str",props);
  String relUrl="String_Node_Str";
  final ByteArrayOutputStream outByte=new ByteArrayOutputStream();
  ServletOutputStream out=new ServletOutputStream(){
    @Override public void write(    int b) throws IOException {
      outByte.write(b);
    }
  }
;
  HttpServletRequest request=EasyMock.createMock(HttpServletRequest.class);
  EasyMock.expect(request.getCharacterEncoding()).andReturn("String_Node_Str").anyTimes();
  request.setCharacterEncoding("String_Node_Str");
  EasyMock.expect(request.getQueryString()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getSession(false)).andReturn(null).anyTimes();
  EasyMock.expect(request.getMethod()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getRemoteUser()).andReturn(null);
  EasyMock.expect(request.getHeaderNames()).andReturn(Collections.enumeration(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
  HttpServletResponse response=EasyMock.createMock(HttpServletResponse.class);
  response.setStatus(200);
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader((String)EasyMock.anyObject(),(String)EasyMock.anyObject());
  EasyMock.expectLastCall().anyTimes();
  EasyMock.expect(response.getOutputStream()).andReturn(out);
  EasyMock.replay(request,response);
  DriverFactory.getInstance("String_Node_Str").proxy(relUrl,request,response);
  EasyMock.verify(request,response);
  EasyMock.reset(request,response);
  EasyMock.expect(request.getCharacterEncoding()).andReturn("String_Node_Str").anyTimes();
  request.setCharacterEncoding("String_Node_Str");
  EasyMock.expect(request.getQueryString()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getSession(false)).andReturn(null).anyTimes();
  EasyMock.expect(request.getMethod()).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn("String_Node_Str").anyTimes();
  EasyMock.expect(request.getHeader("String_Node_Str")).andReturn(null).anyTimes();
  EasyMock.expect(request.getRemoteUser()).andReturn(null);
  EasyMock.expect(request.getHeaderNames()).andReturn(Collections.enumeration(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str")));
  response.setStatus(200);
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader("String_Node_Str","String_Node_Str");
  response.setHeader((String)EasyMock.anyObject(),(String)EasyMock.anyObject());
  EasyMock.expectLastCall().anyTimes();
  EasyMock.expect(response.getOutputStream()).andReturn(out);
  EasyMock.replay(request,response);
  DriverFactory.getInstance("String_Node_Str").proxy(relUrl,request,response);
  EasyMock.verify(request,response);
}