HttpRaftClientProvider implements RaftClientProvider { @Override public RaftClient get(Replica replica) { return new BargeJaxRsClient(((HttpReplica)replica).getUri()); }  @Override RaftClient get(Replica replica);  }
@Test public void providesAClientToAccessTheReplicaURLGivenAHttpReplica() throws Exception { HttpRaftClientProvider provider = new HttpRaftClientProvider(); RaftClient client = provider.get(new HttpReplica(new URI("http: assertThat(client).isInstanceOf(BargeJaxRsClient.class); }