METHOD_0 ( ) { when ( this . IDENT_0 . hasNext ( ) ) . thenReturn ( false , false ) ; final com . mongodb . IDENT_1 IDENT_2 = this . search . METHOD_1 ( this . IDENT_3 , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( IDENT_4 . IDENT_5 . util . IDENT_6 , java . lang . String ) { final java . lang . String [ ] IDENT_7 = 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_8 = java . util . Arrays . asList ( IDENT_9 . split ( STRING_7 ) ) ; final com . mongodb . IDENT_10 db = this . client . METHOD_2 ( STRING_8 ) ; final com . mongodb . IDENT_11 collection = db . METHOD_3 ( STRING_9 ) ; final java . util . List < com . mongodb . IDENT_12 > IDENT_2 = new java . util . ArrayList < com . mongodb . IDENT_12 > ( ) ; final IDENT_4 . IDENT_5 . resource . feature . IDENT_13 IDENT_14 = IDENT_4 . IDENT_5 . resource . feature . IDENT_13 . getInstance ( ) ; final com . mongodb . IDENT_15 results = collection . find ( IDENT_14 . METHOD_4 ( IDENT_8 , IDENT_3 , IDENT_7 ) ) ; while ( results . hasNext ( ) ) { final com . mongodb . IDENT_12 doc = results . next ( ) ; IDENT_2 . add ( doc ) ; } java . util . Collections . METHOD_5 ( IDENT_2 , new IDENT_4 . IDENT_5 . resource . feature . METHOD_6 ( IDENT_8 ) ) ; while ( ( IDENT_2 . size ( ) ) > ( IDENT_4 . IDENT_5 . resource . feature . IDENT_16 . IDENT_17 ) ) { IDENT_2 . remove ( ( ( IDENT_2 . size ( ) ) - 1 ) ) ; } final com . mongodb . IDENT_1 IDENT_18 = new com . mongodb . METHOD_7 ( ) ; IDENT_18 . addAll ( IDENT_2 ) ; return IDENT_18 ; }
org . junit . Assert . assertThat ( IDENT_2 , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . empty ( ) ) )