public async Task Can_WaitForCustomStatus_to_match_predicate()
        {
            var input = new TestFunctionInputAsync();

            var client     = new InMemoryOrchestrationClient(typeof(Funcs).Assembly, _services);
            var instanceId = await client
                             .StartNewAsync(nameof(Funcs.DurableFunctionWithCustomStatus), input);

            var status = await client.WaitForCustomStatus(instanceId, c => c?.ToObject <CustomStatus>() != null);

            Assert.AreEqual(OrchestrationRuntimeStatus.Running, status.RuntimeStatus);

            Assert.IsNotNull(status.CustomStatus);
        }