DefaultPingStats extends AbstractStats implements PingStats { @Override public PingStatsResult getPingStatsResult() { return result; } DefaultPingStats(ScheduledExecutorService scheduled, Endpoint endpoint,
                            SimpleKeyedObjectPool<Endpoint, NettyClient> keyedObjectPool); @Override Endpoint getEndpoint(); @Override PingStatsResult getPingStatsResult();  }
@Test public void getPingStatsResult() throws Exception { Server server = startServer(port, "+PROXY PONG 127.0.0.1:" + port + "\r\n"); HostPort target = new HostPort("127.0.0.1", port); Assert.assertEquals(new PingStatsResult(-1, -1, target, target), pingStats.getPingStatsResult()); pingStats.doTask(); sleep(100); Assert.assertNotNull(pingStats.getPingStatsResult()); server.stop(); }