METHOD_0 ( ) { com . couchbase . client . java . document . IDENT_0 doc = com . couchbase . client . java . document . IDENT_0 . create ( STRING_0 , 0 , com . couchbase . client . java . document . json . IDENT_1 . empty ( ) , 0 , new com . couchbase . client . core . message . IDENT_2 . METHOD_1 ( 1 , INT_0 , INT_1 , STRING_1 ) ) ; com . couchbase . client . java . query . IDENT_3 source = com . couchbase . client . java . query . IDENT_3 . build ( ) . METHOD_2 ( doc ) ; com . couchbase . client . java . document . json . IDENT_1 actual = com . couchbase . client . java . document . json . IDENT_1 . empty ( ) ; source . METHOD_3 ( actual ) ; com . couchbase . client . java . document . json . IDENT_1 IDENT_4 = com . couchbase . client . java . document . json . IDENT_1 . create ( ) . put ( "1" , com . couchbase . client . java . document . json . IDENT_5 . create ( ) . add ( INT_2 ) . add ( STRING_2 ) ) ; com . couchbase . client . java . document . json . IDENT_1 expected = com . couchbase . client . java . document . json . IDENT_1 . create ( ) . put ( STRING_3 , STRING_4 ) . put ( STRING_5 , com . couchbase . client . java . document . json . IDENT_1 . create ( ) . put ( STRING_1 , IDENT_4 ) ) ; "<AssertPlaceHolder>" ; } put ( java . lang . String , IDENT_6 ) { if ( key == null ) { throw new java . lang . METHOD_4 ( STRING_6 ) ; } if ( ! ( com . couchbase . client . java . document . json . IDENT_7 . METHOD_5 ( value ) ) ) { throw new java . lang . IllegalArgumentException ( STRING_7 ) ; } for ( int i = 0 ; i < ( com . couchbase . client . java . IDENT_8 . collections . IDENT_9 . IDENT_10 ) ; i ++ ) { try { com . couchbase . client . java . IDENT_11 . IDENT_12 < com . couchbase . client . core . message . IDENT_2 . IDENT_11 . IDENT_13 . IDENT_14 > IDENT_15 = IDENT_4 . METHOD_6 ( id ) . get ( key ) . execute ( ) ; long IDENT_16 = IDENT_15 . METHOD_7 ( ) ; java . lang . Object result = null ; if ( IDENT_15 . exists ( key ) ) { result = IDENT_15 . content ( key ) ; } IDENT_4 . METHOD_8 ( id ) . METHOD_9 ( key , value , false ) . METHOD_10 ( IDENT_16 ) . execute ( ) ; return ( ( IDENT_6 ) ( result ) ) ; } catch ( com . couchbase . client . java . error . IDENT_17 ex ) { } } throw new java . util . METHOD_11 ( ( ( STRING_8 + ( com . couchbase . client . java . IDENT_8 . collections . IDENT_9 . IDENT_10 ) ) + STRING_9 ) ) ; }
org . junit . Assert . assertEquals ( expected , actual )