METHOD_0 ( ) { IDENT_0 . METHOD_1 ( 1 ) ; final int IDENT_1 = 1000 ; com . allanbank . mongodb . IDENT_2 < com . allanbank . mongodb . bson . Document > IDENT_3 = null ; try { IDENT_4 . insert ( IDENT_5 . IDENT_6 , com . allanbank . mongodb . bson . builder . IDENT_7 . start ( ) . build ( ) ) ; for ( int i = 0 ; i < IDENT_1 ; ++ i ) { IDENT_8 . METHOD_2 ( ( STRING_0 + i ) ) . insert ( IDENT_5 . IDENT_6 , com . allanbank . mongodb . bson . builder . IDENT_7 . start ( ) ) ; } IDENT_3 = IDENT_8 . METHOD_3 ( com . allanbank . mongodb . builder . IDENT_9 . builder ( ) . METHOD_4 ( 10 ) ) ; int count = 0 ; while ( IDENT_3 . hasNext ( ) ) { IDENT_3 . next ( ) ; count += 1 ; } "<AssertPlaceHolder>" ; } finally { com . allanbank . mongodb . util . IDENT_10 . close ( IDENT_3 ) ; for ( int i = 0 ; i < 1000 ; ++ i ) { IDENT_8 . METHOD_2 ( ( STRING_0 + i ) ) . METHOD_5 ( ) ; } } } METHOD_6 ( java . lang . String ) { IDENT_11 = null ; IDENT_12 . put ( IDENT_13 . IDENT_14 , new com . allanbank . mongodb . bson . element . METHOD_7 ( IDENT_13 . IDENT_14 . METHOD_8 ( ) , value ) ) ; return this ; }
org . junit . Assert . assertThat ( count , org . hamcrest . Matchers . METHOD_6 ( ( IDENT_1 + 1 ) ) )