METHOD_0 ( ) { com . IDENT_0 . driver . core . IDENT_1 IDENT_2 = mock ( com . IDENT_0 . driver . core . IDENT_1 . class ) ; com . IDENT_0 . driver . core . IDENT_1 IDENT_3 = mock ( com . IDENT_0 . driver . core . IDENT_1 . class ) ; when ( IDENT_2 . METHOD_1 ( any ( java . lang . String . class ) ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_3 . METHOD_1 ( any ( java . lang . String . class ) ) ) . thenReturn ( IDENT_5 ) ; com . IDENT_0 . driver . core . IDENT_6 IDENT_7 = mock ( com . IDENT_0 . driver . core . IDENT_6 . class ) ; com . IDENT_0 . driver . core . ResultSet rs = mock ( com . IDENT_0 . driver . core . ResultSet . class ) ; java . util . Iterator it = mock ( java . util . Iterator . class ) ; when ( it . hasNext ( ) ) . thenReturn ( true ) ; when ( it . next ( ) ) . thenReturn ( mock ( com . IDENT_0 . driver . core . IDENT_8 . class ) ) ; when ( rs . iterator ( ) ) . thenReturn ( it ) ; when ( IDENT_7 . METHOD_2 ( ) ) . thenReturn ( rs ) ; com . IDENT_0 . driver . core . IDENT_9 cluster = mock ( com . IDENT_0 . driver . core . IDENT_9 . class ) ; when ( cluster . connect ( ) ) . thenReturn ( IDENT_2 ) . thenReturn ( IDENT_3 ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( cluster ) ; when ( IDENT_3 . METHOD_3 ( ) ) . thenReturn ( cluster ) ; com . IDENT_0 . driver . core . IDENT_9 . Builder builder = mock ( IDENT_9 . Builder . class ) ; when ( builder . build ( ) ) . thenReturn ( cluster ) ; org . apache . IDENT_10 . cache . store . cassandra . session . IDENT_11 IDENT_12 = new org . apache . IDENT_10 . cache . store . cassandra . session . METHOD_4 ( builder , null , com . IDENT_0 . driver . core . IDENT_13 . IDENT_14 , com . IDENT_0 . driver . core . IDENT_13 . IDENT_14 , 0 , mock ( org . apache . IDENT_10 . IDENT_15 . class ) ) ; org . apache . IDENT_10 . cache . store . cassandra . session . IDENT_16 < java . lang . String , java . lang . String > IDENT_17 = new org . apache . IDENT_10 . tests . IDENT_18 . METHOD_5 ( ) ; java . util . ArrayList < java . lang . String > data = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { data . add ( java . lang . String . valueOf ( i ) ) ; } IDENT_12 . execute ( IDENT_17 , data ) ; verify ( cluster , times ( 2 ) ) . connect ( ) ; verify ( IDENT_2 , times ( 1 ) ) . METHOD_1 ( any ( java . lang . String . class ) ) ; verify ( IDENT_3 , times ( 1 ) ) . METHOD_1 ( any ( java . lang . String . class ) ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( ) { return IDENT_19 . size ( ) ; }
org . junit . Assert . assertEquals ( 10 , IDENT_17 . METHOD_6 ( ) )