### Question:
JdbcDriverUnregisteringListener implements ServletContextListener { @Override public void contextDestroyed(ServletContextEvent event) { logger = LoggerFactory.getLogger(getClass()); deregisterDrivers(getDrivers()); }  @Override void contextInitialized(ServletContextEvent event); @Override void contextDestroyed(ServletContextEvent event);  }### Answer:
@Test public void testContextDestroyed() { when(spyJdbcDriverUnregisteringListener.getDrivers()).thenReturn(drivers); doNothing().when(spyJdbcDriverUnregisteringListener).deregisterDriver(driver); spyJdbcDriverUnregisteringListener.contextDestroyed(any(ServletContextEvent.class)); verify(spyJdbcDriverUnregisteringListener).deregisterDriver(driver); }