Buggy code:
public abstract class BaseSeqTest { protected abstract < U > FutureStream < U > of ( U ... array ) { } protected abstract < U > FutureStream < U > react ( Supplier < U > ... array ) { } FutureStream < Integer > empty ; FutureStream < Integer > nonEmpty ; @ Before public void setup ( ) { } @ Test public void syncTest ( ) { } @ Test public void asyncTest ( ) { } @ Test public void syncAndAsyncTest ( ) { } @ Test public void asyncSyncTest ( ) { } @ Test @ Ignore public void firstOf ( ) { } protected Object value ( ) { } private int value2 ( ) { } @ Test public void combine ( ) { } @ Test public void combineLatest ( ) { } @ Test public void combineValues ( ) { } @ Test public void withLatest ( ) { } @ Test public void withLatestValues ( ) { } @ Test public void skipUntil ( ) { } @ Test public void takeUntil ( ) { } @ Test public void batchBySize ( ) { } @ Test public void batchBySizeAndTimeSize ( ) { } @ Test public void batchBySizeAndTimeTime ( ) { } @ Test public void batchByTime2 ( ) { <START_BUG> for ( int i = 0 ; i < 500 ; i ++ ) { <END_BUG> System . out . println ( i ) ; assertThat ( react ( ( ) -> 1 , ( ) -> 2 , ( ) -> 3 , ( ) -> 4 , ( ) -> 5 , ( ) -> { sleep ( 100 ) ; return 6 ; } ) . batchByTime ( 30 , TimeUnit . MILLISECONDS ) . toList ( ) . get ( 0 ) , not ( hasItem ( 6 ) ) ) ; } } @ Test public void batchBySizeSet ( ) { } @ Test public void batchBySizeInternalSize ( ) { } @ Test public void fixedDelay ( ) { } @ Test public void judder ( ) { } @ Test public void debounce ( ) { } @ Test public void debounceOk ( ) { } @ Test public void onePer ( ) { } @ Test public void xPer ( ) { } @ Test public void batchByTime ( ) { } @ Test public void batchByTimeSet ( ) { } @ Test public void batchByTimeInternalSize ( ) { } @ Test public void shard ( ) { } @ Test public void shardStreams ( ) { } @ Test public void zip ( ) { } @ Test public void zip2of ( ) { } @ Test public void zipInOrder ( ) { } @ Test public void zipEmpty ( ) throws Exception { } @ Test public void shouldReturnEmptySeqWhenZipEmptyWithNonEmpty ( ) throws Exception { } @ Test public void shouldReturnEmptySeqWhenZipNonEmptyWithEmpty ( ) throws Exception { } @ Test public void shouldZipTwoFiniteSequencesOfSameSize ( ) throws Exception { } @ Test public void shouldTrimSecondFixedSeqIfLonger ( ) throws Exception { } @ Test public void shouldTrimFirstFixedSeqIfLonger ( ) throws Exception { } @ Test public void limitWhileTest ( ) { } @ Test public void testScanLeftStringConcat ( ) { } @ Test public void testScanLeftSum ( ) { } @ Test public void testScanRightStringConcat ( ) { } @ Test public void testScanRightSum ( ) { } @ Test public void testReverse ( ) { } @ Test public void testShuffle ( ) { } @ Test public void testCycle ( ) { } @ Test public void testIterable ( ) { } @ Test public void testDuplicate ( ) { } Throwable ex ; @ Test public void testCastException ( ) { } @ Test public void testCastExceptionOnFail ( ) { } @ Test public void testGroupByEager ( ) { } @ Test public void testJoin ( ) { } @ Test @ Ignore public void testOptional ( ) { } @ Test public void testZipDifferingLength ( ) { } @ Test public void testZipWithIndex ( ) { } @ Test public void testSkipWhile ( ) { } @ Test public void testSkipUntil ( ) { } @ Test public void testSkipUntilWithNulls ( ) { } @ Test public void testLimitWhile ( ) { } @ Test public void testLimitUntil ( ) { } @ Test public void testLimitUntilWithNulls ( ) { } @ Test public void testPartition ( ) { } @ Test public void testPartition100 ( ) { } @ Test public void testSplitAt ( ) { } @ Test public void testSplitAtHead ( ) { } @ Test public void testMinByMaxBy ( ) { } @ Test public void testUnzip ( ) { } @ Test public void testFoldLeft ( ) { } @ Test public void testFoldRight ( ) { } @ Test public void testFoldLeftStringBuilder ( ) { } @ Test public void testFoldRighttringBuilder ( ) { } @ Test public void flattenEmpty ( ) throws Exception { } @ Test public void flatten ( ) throws Exception { } @ Test public void flattenEmptyStream ( ) throws Exception { } private static Stream < Integer > flatMapFun ( int i ) { } protected Object sleep ( int i ) { } }

Fix:
for ( int i = 0 ; i < 5 ; i ++ ) {