Program: 20680
Project: 20680
Buggy source:
@Before public void startServer() throws Exception {
  System.setProperty("String_Node_Str","String_Node_Str");
  this.server=new Server(0);
  ServletContextHandler context=new ServletContextHandler();
  context.setContextPath("String_Node_Str");
  context.setInitParameter("String_Node_Str",getSpringConfigLocation());
  ContextLoaderListener contextLoaderListener=new ContextLoaderListener();
  context.addEventListener(contextLoaderListener);
  ServletHolder sh=new ServletHolder(CXFServlet.class);
  SessionHandler sessionHandler=new SessionHandler();
  context.setSessionHandler(sessionHandler);
  context.addServlet(sh,"String_Node_Str" + getRestServicesPath() + "String_Node_Str");
  ServletHolder repoSh=new ServletHolder(RepositoryServlet.class);
  context.addServlet(repoSh,"String_Node_Str");
  server.setHandler(context);
  this.server.start();
  Connector connector=this.server.getConnectors()[0];
  this.port=connector.getLocalPort();
  log.info("String_Node_Str" + this.port);
  this.redirectServer=new Server(0);
  ServletHolder shRedirect=new ServletHolder(RedirectServlet.class);
  ServletContextHandler contextRedirect=new ServletContextHandler();
  contextRedirect.setContextPath("String_Node_Str");
  contextRedirect.addServlet(shRedirect,"String_Node_Str");
  redirectServer.setHandler(contextRedirect);
  redirectServer.start();
  this.redirectPort=redirectServer.getConnectors()[0].getLocalPort();
  log.info("String_Node_Str",redirectPort);
  FakeCreateAdminService fakeCreateAdminService=getFakeCreateAdminService();
  Boolean res=fakeCreateAdminService.createAdminIfNeeded();
  assertTrue(res.booleanValue());
}

Fixed version (ground truth):
@Before public void startServer() throws Exception {
  System.setProperty("String_Node_Str","String_Node_Str");
  this.server=new Server(0);
  ServletContextHandler context=new ServletContextHandler();
  context.setContextPath("String_Node_Str");
  context.setInitParameter("String_Node_Str",getSpringConfigLocation());
  ContextLoaderListener contextLoaderListener=new ContextLoaderListener();
  context.addEventListener(contextLoaderListener);
  ServletHolder sh=new ServletHolder(CXFServlet.class);
  SessionHandler sessionHandler=new SessionHandler();
  context.setSessionHandler(sessionHandler);
  context.addServlet(sh,"String_Node_Str" + getRestServicesPath() + "String_Node_Str");
  ServletHolder repoSh=new ServletHolder(RepositoryServlet.class);
  context.addServlet(repoSh,"String_Node_Str");
  server.setHandler(context);
  this.server.start();
  Connector connector=this.server.getConnectors()[0];
  this.port=connector.getLocalPort();
  log.info("String_Node_Str" + this.port);
  this.redirectServer=new Server(0);
  ServletHolder shRedirect=new ServletHolder(RedirectServlet.class);
  ServletContextHandler contextRedirect=new ServletContextHandler();
  contextRedirect.setContextPath("String_Node_Str");
  contextRedirect.addServlet(shRedirect,"String_Node_Str");
  redirectServer.setHandler(contextRedirect);
  redirectServer.start();
  this.redirectPort=redirectServer.getConnectors()[0].getLocalPort();
  log.info("String_Node_Str",redirectPort);
  User user=new User();
  user.setEmail("String_Node_Str");
  user.setFullName("String_Node_Str");
  user.setUsername(RedbackRoleConstants.ADMINISTRATOR_ACCOUNT_NAME);
  user.setPassword(FakeCreateAdminService.ADMIN_TEST_PWD);
  getUserService(null).createAdminUser(user);
}