when(dataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
when(entityOwnershipService.registerListener(any(), any())).thenReturn(entityOwnershipListenerRegistration);
when(dataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
when(entityOwnershipService.registerListener(any(), any())).thenReturn(entityOwnershipListenerRegistration);
when(switchConnectionProvider.shutdown()).thenReturn(Futures.immediateFuture(true));
when(configurationService.getProperty(eq(ConfigurationProperty.USE_SINGLE_LAYER_SERIALIZATION.toString()),
any())).thenReturn(USE_SINGLE_LAYER_SERIALIZATION);
when(switchConnectionProvider.shutdown()).thenReturn(Futures.immediateFuture(true));
when(configurationService.getProperty(eq(ConfigurationProperty.USE_SINGLE_LAYER_SERIALIZATION.toString()),
any())).thenReturn(USE_SINGLE_LAYER_SERIALIZATION);
ofPluginDiagstatusProvider, systemReadyMonitor)) {
// Calling the onSystemBootReady() callback
provider.onSystemBootReady();
ofPluginDiagstatusProvider, systemReadyMonitor)) {
// Calling the onSystemBootReady() callback
provider.onSystemBootReady();