ConfigurationResource { @GET @Path("/nodes") public int getServers() throws ConfigStoreException { return ((CassandraSchedulerConfiguration)configurationManager.getTargetConfig()).getServers(); } @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 testGetServers() throws Exception { Integer servers = resources.client().target("/v1/config/nodes").request() .get(Integer.class); System.out.println("servers = " + servers); assertEquals(config.getServers(), servers.intValue()); }