Hadoop has a mechanism for doing fault injection (HDFS-435). I think it would be useful if something similar would be available for ZooKeeper.
Add orthogonal fault injection mechanism/framework
As NettyServerCnxn.sendResponse() allows all the exception to bubble up it can stop main ZK requests processing thread
introduce the fault injection framework: Byteman for ZooKeeper
GitHub Pull Request #123