test ( ) { java . util . List < net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 > IDENT_5 = com . google . common . collect . Lists . newArrayList ( net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 . of ( 1 , 3 ) , net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 . of ( 2 , 6 ) , net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 . of ( 8 , 10 ) , net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 . of ( 15 , INT_0 ) ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . util . List ) { if ( ( IDENT_5 . size ( ) ) <= 1 ) { return IDENT_5 ; } java . util . Collections . METHOD_1 ( IDENT_5 , ( IDENT_6 , IDENT_7 ) -> java . lang . Integer . compare ( IDENT_6 . start , IDENT_7 . start ) ) ; java . util . List < net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 > result = new java . util . METHOD_2 ( ) ; int start = IDENT_5 . get ( 0 ) . start ; int end = IDENT_5 . get ( 0 ) . end ; for ( net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . IDENT_4 IDENT_8 : IDENT_5 ) { if ( ( IDENT_8 . start ) <= end ) { end = java . lang . Math . max ( end , IDENT_8 . end ) ; } else { result . add ( new net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . METHOD_3 ( start , end ) ) ; start = IDENT_8 . start ; end = IDENT_8 . end ; } } result . add ( new net . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . support . METHOD_3 ( start , end ) ) ; return result ; }
org . junit . Assert . assertThat ( METHOD_0 ( IDENT_5 ) . size ( ) , org . hamcrest . Matchers . is ( 3 ) )