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