DeviceSubsystem extends AbstractSubSystem { @Override public void notifyChanged(List<ChangeNotification> changeNotificationList) { super.notifyChanged(changeNotificationList); m_das.queueEdit(PmaServer.getCurrentDevice().getDeviceName(), (EditConfigRequest) RequestScope.getCurrentScope() .getFromCache(CURRENT_REQ)); } DeviceSubsystem(NetconfDeviceAlignmentService das, SchemaRegistry schemaRegistry,
                           AdapterManager adapterManager); @Override void notifyChanged(List<ChangeNotification> changeNotificationList); @Override void notifyPreCommitChange(List<ChangeNotification> changeNotificationList);  }
@Test public void testSubsystemSchedulesEditWithOriginalRequest(){ RequestScope.getCurrentScope().putInCache(RequestTask.CURRENT_REQ, m_request); m_deviceSubsystem.notifyChanged(Collections.emptyList()); verify(m_das).queueEdit(m_device.getDeviceName(), (EditConfigRequest) m_request); }