@Test
public void onPOSTAppendEntriesReturn200WithResponseGivenServiceReturnsResponse() throws Exception {

  when(raftService.appendEntries(Model.entries)).thenReturn(Model.entriesResponse);
  AppendEntriesResponse actual = client().target("/entries")
      .request()
      .post(Entity.entity(Model.entries, MediaType.APPLICATION_JSON_TYPE))
      .readEntity(AppendEntriesResponse.class);
  assertThat(actual).isEqualTo(Model.entriesResponse);
}