protected void setUp() throws Exception {
		FactoryCreator creator = FactoryCreator.createFactory(null);
		procFactory = creator.createPacketProcFactory(null);		
		factoryHolder = new Settings(null, procFactory);
		
		HandlerForTests.setupLogging();
		Logger.getLogger("").setLevel(Level.INFO);
		//here I keep using the same channel manager on purpose, just
		//so we get testing between tests that the channel manager shutdown
		//and started back up cleanly.....		
		if(chanMgr == null) {
			chanMgr = createClientChanMgr("[client]");
		}
		if(echoServer == null) {
			ChannelService svrChanMgr = createSvrChanMgr("[echoServer]");
			echoServer = new EchoServer(svrChanMgr, factoryHolder);
		}
		if(delayServer == null) {
			delayServer = new DelayServer();
		}
		chanMgr.start();
		InetSocketAddress echoSvrAddr = echoServer.start();
		log.fine("echo server port ="+echoSvrAddr);
		delaySvrAddr = delayServer.start(echoSvrAddr);
		log.fine("delay server port ="+delaySvrAddr);
		
		mockHandler = MockObjectFactory.createMock(DataListener.class);
		mockHandler.setDefaultBehavior("incomingData", new CloneByteBuffer());
		mockConnect = MockObjectFactory.createMock(ConnectionCallback.class);
	}