ConfigurationResource { @GET @Path("/cassandra") @Counted public CassandraConfig getCassandraConfig() throws ConfigStoreException { return ((CassandraSchedulerConfiguration)configurationManager.getTargetConfig()).getCassandraConfig(); } @Inject  ConfigurationResource(
            final DefaultConfigurationManager configurationManager); @GET @Path("/cassandra") @Counted CassandraConfig getCassandraConfig(); @GET @Path("/executor") @Counted ExecutorConfig getExecutorConfig(); @GET @Path("/nodes") int getServers(); @GET @Path("/seed-nodes") int getSeeds();  }
@Test public void testGetCassandraConfig() throws Exception { CassandraConfig cassandraConfig = resources.client().target("/v1/config/cassandra").request() .get(CassandraConfig.class); System.out.println("cassandra config = " + cassandraConfig); assertEquals(config.getCassandraConfig(), cassandraConfig); }