@Test
public void canConvertRequestVoteResponseMessageToAndFromProtobuf() throws Exception {

  RequestVoteResponse pojo = new RequestVoteResponse(12, true);
  RaftProto.RequestVoteResponse proto = RaftProto.RequestVoteResponse.newBuilder()
    .setTerm(12)
    .setVoteGranted(true)
    .build();
  assertThat(ProtoUtils.convert(pojo)).isEqualTo(proto);
  assertThat(ProtoUtils.convert(proto)).isEqualTo(pojo);
}