CassandraProvider implements Provider<Cassandra> { @Override public Cassandra get() { return new Cassandra(configuration.getAddresses(), configuration.getKeyspace(), configuration.getTable(), configuration.getTtl(), configuration.getPort(), configuration.getConsistency()); } @Inject  CassandraProvider(MetricsCassandraReporterConfiguration configuration); @Override Cassandra get();  }
@Test @Ignore("Requires running Cassandra instance") public void get() throws Exception { final MetricsCassandraReporterConfiguration configuration = new MetricsCassandraReporterConfiguration(); final CassandraProvider provider = new CassandraProvider(configuration); final Cassandra cassandra = provider.get(); assertNotNull(cassandra); }