METHOD_0 ( ) { com . mongodb . IDENT_0 IDENT_1 = METHOD_1 ( ) ; net . IDENT_2 . IDENT_3 . model . IDENT_4 IDENT_5 = new net . IDENT_2 . IDENT_3 . model . METHOD_2 ( ) ; IDENT_5 . METHOD_3 ( STRING_0 ) ; IDENT_5 . setId ( STRING_1 ) ; expect ( IDENT_1 . insert ( METHOD_4 ( com . mongodb . IDENT_6 . class ) ) ) . METHOD_5 ( new org . easymock . IDENT_7 < com . mongodb . IDENT_8 > ( ) { @ net . IDENT_2 . IDENT_3 . store . Override public com . mongodb . IDENT_8 METHOD_6 ( ) throws java . lang . Throwable { com . mongodb . IDENT_6 obj = ( ( com . mongodb . IDENT_6 ) ( METHOD_7 ( ) [ 0 ] ) ) ; obj . put ( STRING_2 , new org . bson . types . METHOD_8 ( STRING_1 ) ) ; return null ; } } ) ; replay ( IDENT_1 ) ; net . IDENT_2 . IDENT_3 . store . IDENT_9 store = new net . IDENT_2 . IDENT_3 . store . METHOD_9 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 ) ; } METHOD_10 ( net . IDENT_2 . IDENT_3 . model . METHOD_2 ) { javax . ws . rs . core . Response IDENT_10 = target . request ( IDENT_11 . IDENT_12 ) . METHOD_11 ( javax . ws . rs . client . Entity . entity ( IDENT_5 , IDENT_11 . IDENT_12 ) ) ; int status = IDENT_10 . getStatus ( ) ; if ( status == ( java . net . IDENT_13 . IDENT_14 ) ) { net . IDENT_2 . IDENT_3 . model . IDENT_15 METHOD_11 = IDENT_10 . METHOD_12 ( net . IDENT_2 . IDENT_3 . model . IDENT_15 . class ) ; IDENT_5 . setId ( METHOD_11 . getId ( ) ) ; return IDENT_5 ; } else { throw new net . IDENT_2 . IDENT_3 . store . METHOD_13 ( ( STRING_3 + status ) ) ; } }
org . junit . Assert . assertEquals ( IDENT_5 , store . METHOD_10 ( IDENT_5 ) )