METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( STRING_0 , STRING_1 ) ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( STRING_2 , STRING_1 ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( int , int ) { java . util . Collection < java . lang . String > IDENT_2 = new java . util . IDENT_3 < java . lang . String > ( IDENT_0 . METHOD_1 ( ) ) ; IDENT_2 . addAll ( METHOD_3 ( ) ) ; if ( ( start + count ) > ( IDENT_2 . size ( ) ) ) { IDENT_2 . addAll ( IDENT_1 . METHOD_1 ( ) ) ; } if ( start >= ( IDENT_2 . size ( ) ) ) { start = IDENT_2 . size ( ) ; } if ( ( start + count ) >= ( IDENT_2 . size ( ) ) ) { count = ( IDENT_2 . size ( ) ) - start ; } return new java . util . ArrayList < java . lang . String > ( IDENT_2 ) . METHOD_4 ( start , ( start + count ) ) ; }
org . junit . Assert . assertEquals ( 4 , service . METHOD_2 ( 0 , 5 ) . size ( ) )