ConfigurationResource { @GET @Path("/executor") @Counted public ExecutorConfig getExecutorConfig() throws ConfigStoreException { return ((CassandraSchedulerConfiguration)configurationManager.getTargetConfig()).getExecutorConfig(); } @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 testGetExecutorConfig() throws Exception { ExecutorConfig executorConfig = resources.client().target("/v1/config/executor").request() .get(ExecutorConfig.class); System.out.println("executor config = " + executorConfig); assertEquals(config.getExecutorConfig(), executorConfig); }