METHOD_0 ( ) { final com . allanbank . mongodb . IDENT_0 < java . util . Collection < com . allanbank . mongodb . IDENT_1 < com . allanbank . mongodb . bson . Document > > > IDENT_2 = METHOD_1 ( com . allanbank . mongodb . IDENT_0 . class ) ; final com . allanbank . mongodb . client . IDENT_3 IDENT_4 = METHOD_1 ( com . allanbank . mongodb . client . IDENT_3 . class ) ; final com . allanbank . mongodb . bson . builder . IDENT_5 IDENT_6 = com . allanbank . mongodb . bson . builder . IDENT_7 . start ( ) ; IDENT_6 . add ( STRING_0 , "test" ) ; IDENT_6 . add ( STRING_1 , 2 ) ; final com . allanbank . mongodb . bson . builder . IDENT_5 IDENT_8 = com . allanbank . mongodb . bson . builder . IDENT_7 . start ( ) ; IDENT_8 . add ( STRING_2 , 1 ) ; IDENT_8 . METHOD_2 ( STRING_3 ) . METHOD_3 ( ) . METHOD_3 ( STRING_4 ) . add ( STRING_5 , INT_0 ) . METHOD_2 ( STRING_6 ) ; final com . allanbank . mongodb . builder . IDENT_9 . Builder IDENT_10 = com . allanbank . mongodb . builder . IDENT_9 . builder ( ) . METHOD_4 ( 2 ) . METHOD_5 ( IDENT_11 . IDENT_12 ) ; final com . allanbank . mongodb . client . message . IDENT_13 IDENT_14 = new com . allanbank . mongodb . client . message . METHOD_6 ( IDENT_10 . build ( ) , "test" , "test" , IDENT_6 . build ( ) , com . allanbank . mongodb . IDENT_11 . IDENT_12 ) ; expect ( IDENT_15 . METHOD_7 ( ) ) . andReturn ( IDENT_16 . IDENT_17 ) ; expect ( IDENT_18 . getName ( ) ) . andReturn ( "test" ) ; IDENT_15 . METHOD_8 ( eq ( IDENT_14 ) , com . allanbank . mongodb . IDENT_19 . METHOD_9 ( METHOD_10 ( IDENT_8 . build ( ) ) ) ) ; METHOD_11 ( ) ; org . easymock . IDENT_20 < java . util . Collection < com . allanbank . mongodb . IDENT_1 < com . allanbank . mongodb . bson . Document > > > IDENT_21 ; IDENT_21 = new org . easymock . IDENT_20 < java . util . Collection < com . allanbank . mongodb . IDENT_1 < com . allanbank . mongodb . bson . Document > > > ( ) ; IDENT_2 . METHOD_9 ( METHOD_12 ( METHOD_12 ) ) ; METHOD_11 ( ) ; replay ( IDENT_2 , IDENT_4 ) ; IDENT_22 . METHOD_13 ( IDENT_2 , IDENT_10 ) ; verify ( IDENT_2 , IDENT_4 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { final int state = com . allanbank . mongodb . client . IDENT_23 . IDENT_24 . METHOD_14 ( ) ; switch ( state ) { case com . allanbank . mongodb . client . IDENT_23 . IDENT_24 . IDENT_25 : if ( ( IDENT_26 ) != null ) { throw new java . util . concurrent . METHOD_15 ( IDENT_26 ) ; } return IDENT_27 ; case com . allanbank . mongodb . client . IDENT_23 . IDENT_24 . IDENT_28 : case com . allanbank . mongodb . client . IDENT_23 . IDENT_24 . IDENT_29 : final java . util . concurrent . IDENT_30 IDENT_31 = new java . util . concurrent . METHOD_16 ( STRING_7 ) ; IDENT_31 . METHOD_17 ( IDENT_26 ) ; throw IDENT_31 ; default : throw new java . lang . IllegalStateException ( ( STRING_8 + state ) ) ; } }
org . junit . Assert . assertThat ( METHOD_12 . getValue ( ) . size ( ) , org . hamcrest . Matchers . is ( 1 ) )