METHOD_0 ( ) { me . IDENT_0 . cassandra . connection . IDENT_1 IDENT_2 = new me . IDENT_0 . cassandra . connection . METHOD_1 ( ) ; me . IDENT_0 . cassandra . connection . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( me . IDENT_0 . cassandra . connection . IDENT_3 . class ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( 2.0 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_3 ( ) ) . thenReturn ( 5 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_4 ( ) ) . thenReturn ( new me . IDENT_0 . cassandra . service . METHOD_5 ( STRING_0 ) ) ; me . IDENT_0 . cassandra . connection . IDENT_3 IDENT_5 = org . mockito . Mockito . mock ( me . IDENT_0 . cassandra . connection . IDENT_3 . class ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( 2.0 ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( 5 ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_4 ( ) ) . thenReturn ( new me . IDENT_0 . cassandra . service . METHOD_5 ( STRING_1 ) ) ; me . IDENT_0 . cassandra . connection . IDENT_3 IDENT_6 = org . mockito . Mockito . mock ( me . IDENT_0 . cassandra . connection . IDENT_3 . class ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_2 ( ) ) . thenReturn ( 2.0 ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_3 ( ) ) . thenReturn ( 5 ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_4 ( ) ) . thenReturn ( new me . IDENT_0 . cassandra . service . METHOD_5 ( STRING_2 ) ) ; java . util . List < me . IDENT_0 . cassandra . connection . IDENT_7 > pool = new java . util . ArrayList < me . IDENT_0 . cassandra . connection . IDENT_7 > ( ) ; pool . add ( IDENT_4 ) ; pool . add ( IDENT_5 ) ; pool . add ( IDENT_6 ) ; IDENT_2 . add ( IDENT_4 ) ; IDENT_2 . add ( IDENT_5 ) ; IDENT_2 . add ( IDENT_6 ) ; IDENT_2 . METHOD_6 ( ) ; java . util . Set < me . IDENT_0 . cassandra . service . METHOD_5 > IDENT_8 = new java . util . HashSet < me . IDENT_0 . cassandra . service . METHOD_5 > ( ) ; for ( int i = 0 ; i < 50 ; i ++ ) { me . IDENT_0 . cassandra . connection . IDENT_7 IDENT_9 = IDENT_2 . METHOD_7 ( pool , null ) ; me . IDENT_0 . cassandra . service . METHOD_5 p = IDENT_9 . METHOD_4 ( ) ; IDENT_8 . add ( p ) ; assert 5 == ( IDENT_9 . METHOD_3 ( ) ) ; } "<AssertPlaceHolder>" ; } size ( ) { return components . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , IDENT_8 . size ( ) )