I use mock objects to create a simulated ZK object. Alternatively, you may be able to sub-class and delegate all ZK calls. That would let you inject faults.
On Fri, Jun 4, 2010 at 11:28 AM, Stephen Green <eelstretch...@gmail.com>wrote: > Is there any way to inject failures into the ZK client so that I can > test without having to randomly kill servers/clients? >