@Test
public void testNotifyChangedDeviceDelete() {

    List<ChangeNotification> notifs = new ArrayList<>();
    ModelNodeId nodeId = new ModelNodeId("/container=network-manager/container=" + MANAGED_DEVICES, NS);
    EditContainmentNode editContainmentNode = new EditContainmentNode(QName.create(NS, DEVICE), EditConfigOperations.DELETE);
    editContainmentNode.addMatchNode(QName.create(NS, DEVICE), new GenericConfigAttribute("device", NS, DEVICE_A));
    ModelNodeChange change = new ModelNodeChange(ModelNodeChangeType.delete, editContainmentNode);
    notifs.add(new EditConfigChangeNotification(nodeId, change, StandardDataStores.RUNNING, mock(ModelNode.class)));
    m_deviceManagementSubsystem.notifyChanged(notifs);
    verify(m_deviceManager).deviceRemoved(DEVICE_A);
    verify(m_deviceManager, never()).deviceAdded(DEVICE_A);
    verify(m_deviceManager, never()).devicePropertyChanged(DEVICE_A);
}