SingleInternalHelper { public static <T> Iterable<? extends Flowable<T>> iterableToFlowable(final Iterable<? extends SingleSource<? extends T>> sources) { return new ToFlowableIterable<T>(sources); } private  SingleInternalHelper(); static Callable<NoSuchElementException> emptyThrower(); @SuppressWarnings({ "rawtypes", "unchecked" }) static Function<SingleSource<? extends T>, Publisher<? extends T>> toFlowable(); static Iterable<? extends Flowable<T>> iterableToFlowable(final Iterable<? extends SingleSource<? extends T>> sources); @SuppressWarnings({ "rawtypes", "unchecked" }) static Function<SingleSource<? extends T>, Observable<? extends T>> toObservable();  }
@Test public void singleIterableToFlowableIterable() { Iterable<? extends Flowable<Integer>> it = SingleInternalHelper.iterableToFlowable( Collections.singletonList(Single.just(1))); Iterator<? extends Flowable<Integer>> iter = it.iterator(); if (iter.hasNext()) { iter.next().test().assertResult(1); if (iter.hasNext()) { fail("Iterator reports an additional element"); } } else { fail("Iterator was empty"); } }