ZooKeeperServiceDiscovery implements ServiceDiscovery { @Override public void close() throws IOException { _nodeDiscovery.close(); } ZooKeeperServiceDiscovery(CuratorFramework curator); @VisibleForTesting  ZooKeeperServiceDiscovery(NodeDiscovery<String> nodeDiscovery); @Override Iterable<String> getServices(); @Override void close();  }
@Test public void testClosesNodeDiscovery() throws IOException { _discovery.close(); verify(_nodeDiscovery).close(); }