METHOD_0 ( ) { org . IDENT_0 . mock . IDENT_1 object = new org . IDENT_0 . mock . METHOD_1 ( ) ; object . IDENT_2 = new org . IDENT_0 . ArrayList < java . lang . String > ( ) ; object . IDENT_2 . add ( "foo" ) ; object . IDENT_2 . add ( "bar" ) ; IDENT_3 . insert ( object ) ; org . IDENT_0 . IDENT_4 . IDENT_5 < ? > pipeline = org . IDENT_0 . IDENT_4 . project ( STRING_0 , org . IDENT_0 . IDENT_4 . IDENT_6 . METHOD_2 ( org . IDENT_0 . IDENT_4 . IDENT_6 . list ( STRING_1 ) , org . IDENT_0 . IDENT_4 . IDENT_6 . METHOD_3 ( 1 ) ) ) ; org . IDENT_0 . IDENT_7 < org . IDENT_0 . mock . IDENT_8 > IDENT_9 = IDENT_3 . METHOD_4 ( pipeline , org . IDENT_0 . mock . IDENT_8 . class ) ; "<AssertPlaceHolder>" ; } results ( ) { if ( ( results ) == null ) { results = new java . util . ArrayList < T > ( ) ; java . lang . IDENT_10 < com . mongodb . IDENT_11 > IDENT_12 = output . results ( ) ; java . util . Iterator < com . mongodb . IDENT_11 > IDENT_13 = IDENT_12 . iterator ( ) ; while ( IDENT_13 . hasNext ( ) ) { results . add ( ( ( T ) ( collection . METHOD_5 ( IDENT_13 . next ( ) , IDENT_14 ) ) ) ) ; } } return results ; }
org . junit . Assert . assertEquals ( "bar" , IDENT_9 . results ( ) . get ( 0 ) . string )