### Question:
IovisorResolvedEndpointListener extends DataTreeChangeHandler<IovisorResolvedEndpointsByTenantByEndpointgroupId> { @Override protected void onWrite(DataObjectModification<IovisorResolvedEndpointsByTenantByEndpointgroupId> rootNode, InstanceIdentifier<IovisorResolvedEndpointsByTenantByEndpointgroupId> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } protected  IovisorResolvedEndpointListener(DataBroker dataprovider);   }### Answer:
@Test public void testOnWrite() { when(rootNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE); iovisorResolvedEndpointListener.onDataTreeChanged(changes); verify(iovisorResolvedEndpointListener).onSubtreeModified(rootNode, rootIdentifier); }