METHOD_0 ( ) { final com . mongodb . IDENT_0 IDENT_1 = new com . mongodb . METHOD_1 ( ) ; when ( this . IDENT_2 . hasNext ( ) ) . METHOD_2 ( new org . mockito . IDENT_3 . IDENT_4 < java . lang . Boolean > ( ) { MOD_0 int count = ( IDENT_5 . IDENT_6 ) + 10 ; @ IDENT_7 . IDENT_8 . resource . feature . Override public IDENT_7 . IDENT_8 . resource . feature . Boolean METHOD_3 ( final org . mockito . IDENT_9 . IDENT_10 IDENT_9 ) throws java . lang . Throwable { if ( ( this . count ) < 0 ) { return false ; } else { ( this . count ) OP_0 ; return true ; } } } ) ; when ( this . IDENT_2 . next ( ) ) . thenReturn ( IDENT_1 ) ; final com . mongodb . IDENT_11 IDENT_12 = this . search . METHOD_4 ( this . IDENT_13 , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( IDENT_7 . IDENT_8 . util . IDENT_14 , java . lang . String ) { final java . lang . String [ ] IDENT_15 = new java . lang . String [ ] { "name" , STRING_1 , STRING_2 , STRING_3 , STRING_4 , STRING_5 , STRING_6 } ; final java . util . List < java . lang . String > IDENT_16 = java . util . Arrays . asList ( IDENT_17 . split ( STRING_7 ) ) ; final com . mongodb . IDENT_18 db = this . client . METHOD_5 ( STRING_8 ) ; final com . mongodb . IDENT_19 collection = db . METHOD_6 ( STRING_9 ) ; final java . util . List < com . mongodb . IDENT_20 > IDENT_12 = new java . util . ArrayList < com . mongodb . IDENT_20 > ( ) ; final IDENT_7 . IDENT_8 . resource . feature . IDENT_21 IDENT_22 = IDENT_7 . IDENT_8 . resource . feature . IDENT_21 . getInstance ( ) ; final com . mongodb . IDENT_23 results = collection . find ( IDENT_22 . METHOD_7 ( IDENT_16 , IDENT_13 , IDENT_15 ) ) ; while ( results . hasNext ( ) ) { final com . mongodb . IDENT_20 doc = results . next ( ) ; IDENT_12 . add ( doc ) ; } java . util . Collections . METHOD_8 ( IDENT_12 , new IDENT_7 . IDENT_8 . resource . feature . METHOD_9 ( IDENT_16 ) ) ; while ( ( IDENT_12 . size ( ) ) > ( IDENT_7 . IDENT_8 . resource . feature . IDENT_5 . IDENT_6 ) ) { IDENT_12 . remove ( ( ( IDENT_12 . size ( ) ) - 1 ) ) ; } final com . mongodb . IDENT_11 IDENT_24 = new com . mongodb . METHOD_10 ( ) ; IDENT_24 . addAll ( IDENT_12 ) ; return IDENT_24 ; }
org . junit . Assert . assertThat ( IDENT_12 . size ( ) , org . hamcrest . Matchers . is ( IDENT_5 . IDENT_6 ) )