test_class.declarator: factory = new SubscriberStageFactory()
test_class.modifier: private final
test_class.original_string: private final SubscriberStageFactory factory = new SubscriberStageFactory();
test_class.type: SubscriberStageFactory
test_class.var_name: factory
test_class.file: implementation/src/test/java/io/smallrye/reactive/streams/stages/SubscriberStageFactoryTest.java
test_class.identifier: SubscriberStageFactoryTest
test_class.superclass: extends StageTestBase
test_case.body: @Test
      public void create() {
          Flowable<Integer> flowable = Flowable.fromArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
                  .subscribeOn(Schedulers.computation());
  
          SubscriberBuilder<Integer, Optional<Integer>> builder = ReactiveStreams.<Integer> builder().findFirst();
  
          Optional<Integer> optional = ReactiveStreams.fromPublisher(flowable).filter(i -> i > 5)
                  .to(builder).run().toCompletableFuture().join();
  
          assertThat(optional).contains(6);
      }
test_case.class_method_signature: SubscriberStageFactoryTest.create()
test_case.full_signature: @Test public void create()
test_case.identifier: create
test_case.invocations: subscribeOn fromArray computation findFirst builder join toCompletableFuture run to filter fromPublisher contains assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void create()
focal_class.file: implementation/src/main/java/io/smallrye/reactive/streams/stages/SubscriberStageFactory.java
focal_class.identifier: SubscriberStageFactory
focal_class.interfaces: implements TerminalStageFactory<Stage.SubscriberStage>
focal_class.class_method_signature: SubscriberStageFactory.create(Engine engine, Stage.SubscriberStage stage)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public TerminalStage<I, O> create(Engine engine, Stage.SubscriberStage stage)
focal_class.identifier: create
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (Engine engine, Stage.SubscriberStage stage)
focal_class.return: TerminalStage<I, O>
focal_class.signature: TerminalStage<I, O> create(Engine engine, Stage.SubscriberStage stage)
focal_method.body: @SuppressWarnings("unchecked")
      @Override
      public <I, O> TerminalStage<I, O> create(Engine engine, Stage.SubscriberStage stage) {
          Subscriber<I> subscriber = (Subscriber<I>) Objects.requireNonNull(stage).getRsSubscriber();
          Objects.requireNonNull(subscriber);
          return (TerminalStage<I, O>) new SubscriberStage<>(subscriber);
      }
focal_method.class_method_signature: SubscriberStageFactory.create(Engine engine, Stage.SubscriberStage stage)
focal_method.full_signature: @SuppressWarnings("unchecked") @Override public TerminalStage<I, O> create(Engine engine, Stage.SubscriberStage stage)
focal_method.identifier: create
focal_method.invocations: getRsSubscriber requireNonNull requireNonNull
focal_method.modifiers: @SuppressWarnings("unchecked") @Override public
focal_method.parameters: (Engine engine, Stage.SubscriberStage stage)
focal_method.return: TerminalStage<I, O>
focal_method.signature: TerminalStage<I, O> create(Engine engine, Stage.SubscriberStage stage)