- final Map<InstanceIdentifier<?>, DataObject> createdData = new HashMap<>();
- createdData.put(createTestMeterStatPath(), createTestMeterStat());
- notifSupplierImpl.onDataChanged(TestChangeEventBuildHelper.createTestDataEvent(createdData, null, null));
- verify(notifProviderService, times(1)).publish(Matchers.any(MeterStatisticsUpdated.class));
+ final TestData testData = new TestData(createTestMeterStatPath(),null,createTestMeterStat(),
+ DataObjectModification.ModificationType.WRITE);
+ Collection<DataTreeModification<MeterStatistics>> collection = new ArrayList<>();
+ collection.add(testData);
+ notifSupplierImpl.onDataTreeChanged(collection);
+ verify(notifProviderService, times(1)).publish(any(MeterStatisticsUpdated.class));