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