ServiceConfigResource { @GET @Counted public ServiceConfig getIdentity() throws Exception { return configurationManager.getTargetConfig().getServiceConfig(); } @Inject  ServiceConfigResource(ConfigurationManager configurationManager); @GET @Counted ServiceConfig getIdentity();  }
@Test public void testGetIdentity() throws Exception { ServiceConfig serviceConfig = resources.client().target("/v1/framework").request() .get(ServiceConfig.class); System.out.println("serviceConfig = " + serviceConfig); assertEquals(config.getServiceConfig(), serviceConfig); }