Github user anmolnar commented on the issue:
https://github.com/apache/zookeeper/pull/546
@eolivelli Sorry, my fault. I missed that your method is used from
RemotePeerBeen too with the remote peer id. Which is fine.
Regarding unit testing.
- validate currentVote == null case
- validate id == getId() and id != getId() cases
Not sure if you have to use Moquito, because `QuorumPeer` has default
constructor.---
