### Question:
SflowClientSettingsListener extends DataTreeChangeHandler<SflowClientSettings> { @Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } SflowClientSettingsListener(DataBroker dataprovider, ScheduledExecutorService executor, StatisticsManager statisticsManager);   }### Answer:
@Test public void testOnWrite() { when(rootNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE); listener.onDataTreeChanged(changes); verify(listener).onWrite(rootNode, rootIdentifier); }