### Question:
StandardLiveActivityRuntime extends BaseActivityRuntime implements LiveActivityRuntime, LiveActivityRunnerListener { @Override public void shutdown() { try { if (liveActivityRunnerSampler != null) { liveActivityRunnerSampler.shutdown(); liveActivityRunnerSampler = null; } liveActivityRunnerFactory.shutdown(); runtimeDebugService.shutdown(); shutdownAllActivities(); activityStateTransitioners.clear(); liveActivityRuntimeComponentFactory.unregisterCoreServices(getSpaceEnvironment().getServiceRegistry()); } catch (Throwable e) { getSpaceEnvironment().getExtendedLog().formatError(e, "Error while shutting down live activity runtime"); } for (LiveActivityRuntimeListener listener : runtimeListeners) { try { listener.onLiveActivityRuntimeStartup(this); } catch (Throwable e) { getSpaceEnvironment().getExtendedLog().formatError("Error on live activity runtime onStartup call"); } } } StandardLiveActivityRuntime(LiveActivityRuntimeComponentFactory liveActivityRuntimeComponentFactory,
      LocalLiveActivityRepository liveActivityRepository, ActivityInstallationManager activityInstallationManager,
      LiveActivityLogFactory activityLogFactory, LiveActivityConfigurationManager configurationManager,
      LiveActivityStorageManager activityStorageManager, AlertStatusManager alertStatusManager,
      SequentialEventQueue eventQueue, RemoteLiveActivityRuntimeMonitorService runtimeDebugService,
      InteractiveSpacesEnvironment spaceEnvironment); @Override void addRuntimeListener(LiveActivityRuntimeListener listener); @Override void removeRuntimeListener(LiveActivityRuntimeListener listener); @Override void startup(); @Override void shutdown(); @Override void startupAllActivities(); @Override void shutdownAllActivities(); @Override List<InstalledLiveActivity> getAllInstalledLiveActivities(); @Override void startupLiveActivity(String uuid); @Override void shutdownLiveActivity(final String uuid); @Override void statusLiveActivity(String uuid); @Override void activateLiveActivity(String uuid); @Override void deactivateLiveActivity(String uuid); @Override void configureLiveActivity(String uuid, Map<String, String> configuration); @Override void cleanLiveActivityTmpData(String uuid); @Override void cleanLiveActivityPermanentData(String uuid); @Override void initializeActivityInstance(InstalledLiveActivity installedActivity,
      ActivityFilesystem activityFilesystem, Activity instance, Configuration configuration, Log activityLog,
      ActivityExecutionContext executionContext); @Override void onNoInstanceActivityStatusEvent(LiveActivityRunner liveActivityRunner); @Override Log getActivityLog(InstalledLiveActivity installedActivity, Configuration configuration,
      ActivityFilesystem activityFilesystem); @Override void releaseActivityLog(Log activityLog); @Override LiveActivityRunner getLiveActivityRunnerByUuid(String uuid); @Override boolean hasLiveActivitiesRunning(); @Override boolean isLiveActivityRunning(String uuid); Collection<LiveActivityRunner> getAllActiveActivities(); @Override void setLiveActivityStatusPublisher(LiveActivityStatusPublisher liveActivityStatusPublisher); @Override LiveActivityRunnerFactory getLiveActivityRunnerFactory(); @Override LiveActivityStorageManager getLiveActivityStorageManager();  }### Answer:
@Test public void testShutdown() { liveActivityRuntime.shutdown(); Mockito.verify(liveActivityRunnerSampler).shutdown(); }