Github user eolivelli commented on the issue:
https://github.com/apache/zookeeper/pull/546
@anmolnar tests added as you requested. Now it looks better.
I have understood what you meant, I did not use Mockito, I cannot mock the
class I am testing---
