/** Startup the live activity from two groups and shutdown from 1. */
  @Test
  public void groupTwoActivityStartupAndOneShutdown() {
    activeLiveActivity.startupFromLiveActivityGroup(activeLiveActivityGroup1);
    activeLiveActivity.startupFromLiveActivityGroup(activeLiveActivityGroup2);
    activeLiveActivity.shutdownFromLiveActivityGroup(activeLiveActivityGroup1);

    assertActiveActivityState(
        activeLiveActivity,
        false,
        1,
        false,
        0,
        ActivityState.STARTUP_ATTEMPT,
        ActivityState.UNKNOWN);
    Mockito.verify(remoteControllerClient, Mockito.times(0)).shutdownActivity(activeLiveActivity);
  }
  /** Activate the live activity from a group, then shut it down from a group. */
  @Test
  public void groupActivityActivateAndShutdown() {
    activeLiveActivity.activateFromLiveActivityGroup(activeLiveActivityGroup1);

    assertActiveActivityState(
        activeLiveActivity,
        false,
        1,
        false,
        1,
        ActivityState.ACTIVATE_ATTEMPT,
        ActivityState.UNKNOWN);

    activeLiveActivity.shutdownFromLiveActivityGroup(activeLiveActivityGroup1);

    assertActiveActivityState(
        activeLiveActivity,
        false,
        0,
        false,
        0,
        ActivityState.SHUTDOWN_ATTEMPT,
        ActivityState.UNKNOWN);
  }