@Test
public void canConvertAppendEntriesResponseToAndFromProtobuf() throws Exception {

  AppendEntriesResponse pojo = new AppendEntriesResponse(12,true,43);
  RaftProto.AppendEntriesResponse proto = RaftProto.AppendEntriesResponse.newBuilder()
    .setTerm(12)
    .setLastLogIndex(43)
    .setSuccess(true)
    .build();
  assertThat(ProtoUtils.convert(pojo)).isEqualTo(proto);
  assertThat(ProtoUtils.convert(proto)).isEqualTo(pojo);
}