ServerCnxnFactory f = ServerCnxnFactory.createFactory(PORT, -1);
f.startup(zks);
Assert.assertTrue("waiting for server being up ",
ClientBase.waitForServerUp(HOSTPORT,CONNECTION_TIMEOUT));
zks.sessionTracker = new MySessionTracker();
PrepRequestProcessor processor = new PrepRequestProcessor(zks, new MyRequestProcessor());
Request foo = new Request(null, 1l, 1, OpCode.create, ByteBuffer.allocate(3), null);
processor.pRequest(foo);
testEnd.await(5, java.util.concurrent.TimeUnit.SECONDS);
f.shutdown();
zks.shutdown();
}