### Question:
EndpointsListener implements ClusteredDataTreeChangeListener<AddressEndpoint> { public void close() { this.listenerRegistration.close(); } EndpointsListener(DataBroker dataBroker, NeLocationProvider listener); @Override void onDataTreeChanged(Collection<DataTreeModification<AddressEndpoint>> changes); void close();  }### Answer:
@Test public void test_UnregiserOnClose() { endpointsListener.close(); verify(listenerRegistration).close(); }