### Question:
ConnectionDisposeListener implements CacheEventListener { @Override public void notifyElementRemoved(final Ehcache cache, final Element element) throws CacheException { close(element); }  @Override void dispose(); @Override void notifyElementEvicted(final Ehcache cache, final Element element); @Override void notifyElementExpired(final Ehcache cache, final Element element); @Override void notifyElementPut(final Ehcache cache, final Element element); @Override void notifyElementRemoved(final Ehcache cache, final Element element); @Override void notifyElementUpdated(final Ehcache cache, final Element element); @Override void notifyRemoveAll(final Ehcache cache); @Override ConnectionDisposeListener clone();  }### Answer:
@Test public void testNotifyElementRemoved() { cache.remove(ELEMENT_NAME); verify(connection).closePhysical(); }