        succeeded = true;
    }
    else if (kind == ActivationKind::StartupTask)
    {
        auto startupArgs = args.as<IStartupTaskActivatedEventArgs>();
        if (startupArgs.TaskId() == L"this_is_a_test")
        {
            // Signal event that startuptask was activated.
            SignalPhase(c_testStartupPhaseEventName);
            succeeded = true;
        }
    }

    if (!succeeded)
    {
