### Question:
RendererConfigurationListenerImpl implements ClusteredDataTreeChangeListener<RendererPolicy>, AutoCloseable { @Override public void close() { listenerRegistration.close(); } RendererConfigurationListenerImpl(final DataBroker dataBroker,
                                             final PolicyManager policyManager); @Override void onDataTreeChanged(@Nonnull final Collection<DataTreeModification<RendererPolicy>> collection); @Override void close();  }### Answer:
@Test public void testClose() throws Exception { Mockito.verify(listenerRegistration, Mockito.never()).close(); listener.close(); Mockito.verify(listenerRegistration).close(); listener.close(); Mockito.verify(listenerRegistration, Mockito.times(2)).close(); }