METHOD_0 ( ) { com . couchbase . client . core . IDENT_0 . IDENT_1 IDENT_2 = mock ( com . couchbase . client . core . IDENT_0 . IDENT_1 . class ) ; com . couchbase . client . core . service . IDENT_3 . IDENT_4 IDENT_5 = new com . couchbase . client . core . service . IDENT_3 . METHOD_1 ( com . couchbase . client . core . state . IDENT_6 . IDENT_7 ) ; when ( IDENT_2 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 . METHOD_2 ( ) ) ; com . couchbase . client . core . IDENT_0 . IDENT_1 IDENT_8 = mock ( com . couchbase . client . core . IDENT_0 . IDENT_1 . class ) ; com . couchbase . client . core . service . IDENT_3 . METHOD_1 IDENT_9 = new com . couchbase . client . core . service . IDENT_3 . METHOD_1 ( com . couchbase . client . core . state . IDENT_6 . IDENT_7 ) ; when ( IDENT_8 . METHOD_2 ( ) ) . thenReturn ( IDENT_9 . METHOD_2 ( ) ) ; com . couchbase . client . core . IDENT_0 . IDENT_1 IDENT_10 = mock ( com . couchbase . client . core . IDENT_0 . IDENT_1 . class ) ; com . couchbase . client . core . service . IDENT_3 . METHOD_1 IDENT_11 = new com . couchbase . client . core . service . IDENT_3 . METHOD_1 ( com . couchbase . client . core . state . IDENT_6 . IDENT_7 ) ; when ( IDENT_10 . METHOD_2 ( ) ) . thenReturn ( IDENT_11 . METHOD_2 ( ) ) ; com . couchbase . client . core . IDENT_0 . IDENT_1 IDENT_12 = mock ( com . couchbase . client . core . IDENT_0 . IDENT_1 . class ) ; com . couchbase . client . core . service . IDENT_3 . METHOD_1 IDENT_13 = new com . couchbase . client . core . service . IDENT_3 . METHOD_1 ( com . couchbase . client . core . state . IDENT_6 . IDENT_7 ) ; when ( IDENT_12 . METHOD_2 ( ) ) . thenReturn ( IDENT_13 . METHOD_2 ( ) ) ; when ( factory . create ( host , IDENT_14 , IDENT_14 , IDENT_15 , port , ctx ) ) . thenReturn ( IDENT_2 , IDENT_8 , IDENT_10 , IDENT_12 ) ; final java . util . concurrent . atomic . IDENT_16 < java . util . List > IDENT_17 = new java . util . concurrent . atomic . IDENT_16 < java . util . List > ( ) ; com . couchbase . client . core . service . IDENT_18 . IDENT_19 strategy = new com . couchbase . client . core . service . IDENT_18 . METHOD_3 ( ) { @ com . couchbase . client . core . service . Override public com . couchbase . client . core . IDENT_0 . IDENT_1 select ( com . couchbase . client . core . message . IDENT_20 request , java . util . List < com . couchbase . client . core . IDENT_0 . IDENT_1 > IDENT_21 ) { IDENT_17 . set ( IDENT_21 ) ; return IDENT_21 . get ( 0 ) ; } } ; int IDENT_21 = 4 ; com . couchbase . client . core . service . IDENT_3 . IDENT_22 service = new com . couchbase . client . core . service . IDENT_3 . METHOD_4 ( host , IDENT_14 , IDENT_15 , port , ctx , IDENT_21 , IDENT_21 , strategy , factory ) ; service . connect ( ) . METHOD_5 ( ) . METHOD_6 ( ) ; com . couchbase . client . core . message . IDENT_20 request = mock ( com . couchbase . client . core . message . IDENT_20 . class ) ; service . METHOD_7 ( request ) ; verify ( IDENT_2 , times ( 1 ) ) . METHOD_7 ( request ) ; "<AssertPlaceHolder>" ; } get ( ) { return IDENT_23 . METHOD_8 ( ) . METHOD_9 ( IDENT_24 ) ; }
org . junit . Assert . assertEquals ( IDENT_21 , IDENT_17 . get ( ) . size ( ) )