DefaultPingStatsManager implements PingStatsManager { @Override public PingStats create(ProxyEndpoint endpoint) { PingStats pingStats = new DefaultPingStats(resourceManager.getGlobalSharedScheduled(), endpoint, resourceManager.getKeyedObjectPool()); allPingStats.add(pingStats); allEndpoints.add(endpoint); try { pingStats.start(); } catch (Exception e) { logger.error("[create]", e); } return pingStats; } DefaultPingStatsManager();  DefaultPingStatsManager(ResourceManager resourceManager, ProxyEndpointManager endpointManager); @Override List<PingStats> getAllPingStats(); @Override PingStats create(ProxyEndpoint endpoint); @PostConstruct void postConstruct(); @PreDestroy void preDestroy(); DefaultPingStatsManager setResourceManager(ResourceManager resourceManager); DefaultPingStatsManager setEndpointManager(ProxyEndpointManager endpointManager);  }
@Test public void testCreate() throws Exception { Server server = startEmptyServer(); PingStats pingStats = manager.create(new DefaultProxyEndpoint( String.format("%s: Assert.assertNotNull(pingStats); server.stop(); }