@Test
public void onNextOnNextRace() {

    for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {
        final FlowableProcessor<Integer> s = PublishProcessor.<Integer>create().toSerialized();
        TestSubscriber<Integer> ts = s.test();
        Runnable r1 = new Runnable() {
            @Override
            public void run() {
                s.onNext(1);
            }
        };
        Runnable r2 = new Runnable() {
            @Override
            public void run() {
                s.onNext(2);
            }
        };
        TestHelper.race(r1, r2);
        ts.assertSubscribed().assertNoErrors().assertNotComplete()
        .assertValueSet(Arrays.asList(1, 2));
    }
}