public static <@NonNull E> CompletableSource resolveScopeFromLifecycle(
      final LifecycleScopeProvider<E> provider) throws OutsideScopeException {
    return resolveScopeFromLifecycle(provider, true);
  }
@Test
  public void lifecycleCheckEndDisabled_shouldRouteThroughOnError() {
    TestLifecycleScopeProvider lifecycle = TestLifecycleScopeProvider.createInitial(STOPPED);

    testSource(resolveScopeFromLifecycle(lifecycle, false))
        .assertError(LifecycleEndedException.class);
  }