WorkerThread thread;
public void testWorkerThread() throws Exception {
Properties props = PropertyUtils.getProperties("server.properties");
ServerConfig serverConfig = new ServerConfig(props);
HttpParamsBuilder paramsBuilder = new HttpParamsBuilder();
paramsBuilder.socketTimeout(serverConfig.getSocketTimeout())
.socketBufferSize(serverConfig.getSocketBufferSize())
.originServer(serverConfig.getParam("ServerName"));
HttpProcessorBuilder procBuilder = new HttpProcessorBuilder();
//default interceptors
procBuilder.addInterceptor(new ResponseDate());