protected void setUp() throws Exception {
		SSLEngineFactory sslEngineFactory = new MockSSLEngineFactory();	
		Settings clientFactoryHolder = new Settings(sslEngineFactory, null);

		//use this engine to feed data back from server...
		SSLEngine wrappedSvr = sslEngineFactory.createEngineForServerSocket();		
		sslEngine = creator.createSSLEngine("[serverAsynch] ", wrappedSvr, null);
		sslEngine.setListener((SSLListener)mockSSLListener);
		
		//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 = getClientChanMgr();
		}
		if(mockServer == null) {
			ChannelService svcChanMgr = getServerChanMgr();
			mockServer = new MockNIOServer(svcChanMgr, null);
		}
		chanMgr.start();		
		svrAddr = mockServer.start();
		log.fine("server port ="+svrAddr);
		
		loopBack = InetAddress.getByName("127.0.0.1");
		loopBackAnyPort = new InetSocketAddress(loopBack, 0);
		
		mockHandler.setDefaultBehavior("incomingData", new CloneByteBuffer());
		mockSSLListener.setDefaultBehavior("packetEncrypted", new CloneByteBuffer());
		client1 = chanMgr.createTCPChannel("ClientChannel", clientFactoryHolder);
	}