@Test
public void onPOSTRequestVoteReturn200WithResponseGivenServiceReturnsResponse() throws Exception {
when(raftService.requestVote(Model.vote)).thenReturn(Model.voteResponse);
RequestVoteResponse actual = client().target("/vote")
.request()
.post(Entity.entity(Model.vote, MediaType.APPLICATION_JSON_TYPE))
.readEntity(RequestVoteResponse.class);
assertThat(actual).isEqualTo(Model.voteResponse);