### Question:
RegistryServerSync implements InitializingBean, DisposableBean, NotifyListener { @Override public void destroy() throws Exception { registry.unsubscribe(SUBSCRIBE, this); }  ConcurrentMap<String, ConcurrentMap<String, Map<String, URL>>> getRegistryCache(); @Override void afterPropertiesSet(); @Override void destroy(); @Override void notify(List<URL> urls);  }### Answer:
@Test public void testDestroy() throws Exception { registryServerSync.destroy(); verify(registry).unsubscribe(any(URL.class), any(RegistryServerSync.class)); }