METHOD_0 ( ) { com . mongodb . IDENT_0 IDENT_1 = METHOD_1 ( ) ; com . mongodb . IDENT_2 IDENT_3 = METHOD_2 ( ) ; expect ( IDENT_3 . hasNext ( ) ) . METHOD_3 ( new org . easymock . IDENT_4 < java . lang . Boolean > ( ) { MOD_0 int count = 0 ; @ net . IDENT_5 . IDENT_6 . store . Override public net . IDENT_5 . IDENT_6 . store . Boolean METHOD_4 ( ) throws java . lang . Throwable { ( count ) ++ ; return ( count ) == 3 ? false : true ; } } ) . METHOD_5 ( ) ; expect ( IDENT_3 . next ( ) ) . METHOD_3 ( new org . easymock . IDENT_4 < com . mongodb . IDENT_7 > ( ) { MOD_0 int count = 0 ; @ net . IDENT_5 . IDENT_6 . store . Override public com . mongodb . IDENT_7 METHOD_4 ( ) throws java . lang . Throwable { ( count ) ++ ; com . mongodb . IDENT_8 IDENT_9 = new com . mongodb . METHOD_6 ( ) ; IDENT_9 . put ( STRING_0 , ( STRING_1 + ( count ) ) ) ; IDENT_9 . put ( STRING_2 , false ) ; IDENT_9 . put ( STRING_3 , count ) ; IDENT_9 . put ( STRING_4 , new org . bson . types . METHOD_7 ( ( STRING_5 + ( count ) ) ) ) ; return IDENT_9 ; } } ) . METHOD_5 ( ) ; IDENT_3 . close ( ) ; METHOD_8 ( ) ; replay ( IDENT_3 ) ; expect ( IDENT_1 . find ( ) ) . andReturn ( IDENT_3 ) ; replay ( IDENT_1 ) ; net . IDENT_5 . IDENT_6 . store . IDENT_10 store = new net . IDENT_5 . IDENT_6 . store . METHOD_9 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_3 ) ; verify ( IDENT_1 ) ; } count ( ) { javax . ws . rs . core . Response IDENT_11 = target . path ( STRING_6 ) . path ( net . IDENT_5 . IDENT_6 . store . IDENT_12 . IDENT_13 ) . path ( STRING_7 ) . path ( net . IDENT_5 . IDENT_6 . store . IDENT_12 . IDENT_14 ) . request ( IDENT_15 . IDENT_16 ) . get ( ) ; int status = IDENT_11 . getStatus ( ) ; if ( status == ( java . net . IDENT_17 . IDENT_18 ) ) { net . IDENT_5 . IDENT_6 . model . IDENT_19 count = IDENT_11 . METHOD_10 ( net . IDENT_5 . IDENT_6 . model . IDENT_19 . class ) ; if ( ( count . METHOD_11 ( ) . size ( ) ) > 0 ) { return count . METHOD_11 ( ) . get ( 0 ) . getValue ( ) ; } else { return 0 ; } } else { throw new net . IDENT_5 . IDENT_6 . store . METHOD_12 ( ( STRING_8 + status ) ) ; } }
org . junit . Assert . assertEquals ( 2 , store . count ( ) )