METHOD_0 ( ) { final org . openqa . selenium . support . IDENT_0 . IDENT_1 IDENT_2 = mock ( org . openqa . selenium . support . IDENT_0 . IDENT_1 . class ) ; final org . openqa . selenium . IDENT_3 IDENT_4 = mock ( org . openqa . selenium . IDENT_3 . class , STRING_0 ) ; final org . openqa . selenium . IDENT_3 IDENT_5 = mock ( org . openqa . selenium . IDENT_3 . class , STRING_1 ) ; final java . util . List < org . openqa . selenium . IDENT_3 > list = java . util . Arrays . asList ( IDENT_4 , IDENT_5 ) ; when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( list ) ; org . openqa . selenium . support . IDENT_0 . internal . IDENT_6 handler = new org . openqa . selenium . support . IDENT_0 . internal . METHOD_2 ( IDENT_2 ) ; java . util . List < org . openqa . selenium . IDENT_3 > proxy = ( ( java . util . List < org . openqa . selenium . IDENT_3 > ) ( java . lang . reflect . IDENT_7 . METHOD_3 ( getClass ( ) . METHOD_4 ( ) , new java . lang . Class [ ] { java . util . List . class } , handler ) ) ) ; proxy . get ( 1 ) . METHOD_5 ( STRING_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 , times ( 2 ) ) . METHOD_1 ( ) ; verify ( IDENT_5 , times ( 1 ) ) . METHOD_5 ( STRING_2 ) ; METHOD_6 ( IDENT_2 , IDENT_5 ) ; METHOD_7 ( IDENT_4 ) ; } size ( ) { java . lang . Object response = IDENT_8 . execute ( IDENT_9 . IDENT_10 , null ) ; return java . lang . Integer . METHOD_8 ( response . toString ( ) ) ; }
org . junit . Assert . assertThat ( proxy . size ( ) , org . hamcrest . Matchers . equalTo ( 2 ) )