### Question:
StandardLiveActivityRuntime extends BaseActivityRuntime implements LiveActivityRuntime, LiveActivityRunnerListener { @Override public void onNoInstanceActivityStatusEvent(LiveActivityRunner liveActivityRunner) { ActivityStatus status = liveActivityRunner.getCachedActivityStatus(); if (status.getState().isError()) { publishActivityStatus(liveActivityRunner.getUuid(), status); alertStatusManager.announceLiveActivityStatus(liveActivityRunner); } else { getSpaceEnvironment().getExtendedLog().formatWarn( "A live activity liveActivityRunner for live activity %s has a no instance status event that isn't an error: %s", liveActivityRunner.getUuid(), status); } } 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 testHandlingLiveActivityRunnerNotification() { ActivityStatus status = new ActivityStatus(ActivityState.STARTUP_FAILURE, null); LiveActivityRunner runner = mock(LiveActivityRunner.class); when(runner.getCachedActivityStatus()).thenReturn(status); liveActivityRuntime.onNoInstanceActivityStatusEvent(runner); verify(alertStatusManager).announceLiveActivityStatus(runner); }