@Test
public void returnsFutureWithServerResponseWhenAppendingEntriesGivenServerAnswers() throws Exception {

  BargeJaxRsClient bargeJaxRsClient = new BargeJaxRsClient(getBaseUri(),client().register(Jackson.customJacksonProvider()));
  CompletableFuture<AppendEntriesResponse> future = bargeJaxRsClient.appendEntries(Model.entries);
  assertThat(future.get(1, TimeUnit.SECONDS)).isEqualTo(Model.entriesResponse);
}