METHOD_0 ( ) { final org . baeldung . IDENT_0 . data . cassandra . model . IDENT_1 IDENT_2 = new org . baeldung . IDENT_0 . data . cassandra . model . METHOD_1 ( com . IDENT_3 . driver . core . utils . IDENT_4 . METHOD_2 ( ) , STRING_0 , STRING_1 , com . google . common . collect . IDENT_5 . of ( STRING_2 , STRING_3 ) ) ; final org . baeldung . IDENT_0 . data . cassandra . model . METHOD_1 IDENT_6 = new org . baeldung . IDENT_0 . data . cassandra . model . METHOD_1 ( com . IDENT_3 . driver . core . utils . IDENT_4 . METHOD_2 ( ) , STRING_4 , STRING_1 , com . google . common . collect . IDENT_5 . of ( STRING_2 , STRING_3 ) ) ; IDENT_7 . insert ( IDENT_2 ) ; IDENT_7 . insert ( IDENT_6 ) ; final long IDENT_8 = IDENT_7 . count ( org . baeldung . IDENT_0 . data . cassandra . model . METHOD_1 . class ) ; "<AssertPlaceHolder>" ; } insert ( com . baeldung . couchbase . mapreduce . IDENT_9 ) { java . lang . String id = IDENT_10 . METHOD_3 ( IDENT_11 ) ; if ( IDENT_12 . exists ( id ) ) { throw new com . baeldung . couchbase . mapreduce . METHOD_4 ( ( STRING_5 + id ) ) ; } com . couchbase . client . java . document . json . IDENT_13 content = com . couchbase . client . java . document . json . IDENT_13 . empty ( ) . put ( STRING_6 , STRING_7 ) . put ( "name" , IDENT_11 . getName ( ) ) . put ( STRING_8 , IDENT_11 . METHOD_5 ( ) ) . put ( STRING_9 , IDENT_11 . METHOD_6 ( ) ) . put ( STRING_10 , IDENT_11 . METHOD_7 ( ) ) ; com . couchbase . client . java . document . IDENT_14 doc = com . couchbase . client . java . document . IDENT_14 . create ( id , content ) ; IDENT_12 . insert ( doc ) ; return id ; }
org . junit . Assert . assertEquals ( 2 , IDENT_8 )