AltoAutoMapsUpdateListener implements DataTreeChangeListener<Topology>, AutoCloseable { @Override public void close() throws Exception { closeRegistration(); LOG.info("AltoAutoMapsUpdateListener Closed"); } AltoAutoMapsUpdateListener(final DataBroker dataBroker); @Override void onDataTreeChanged(Collection<DataTreeModification<Topology>> changes); @Override void close();  }
@Test public void testClose() throws Exception { altoAutoMapsUpdateListener.close(); verify(registration).close(); }