METHOD_0 ( ) { org . openqa . selenium . grid . session . IDENT_0 IDENT_1 = mock ( org . openqa . selenium . grid . session . IDENT_0 . class ) ; when ( IDENT_1 . test ( any ( ) ) ) . thenReturn ( false ) ; when ( IDENT_1 . apply ( any ( ) ) ) . METHOD_1 ( new java . lang . METHOD_2 ( STRING_0 ) ) ; org . openqa . selenium . grid . session . IDENT_2 session = mock ( org . openqa . selenium . grid . session . IDENT_2 . class ) ; org . openqa . selenium . grid . session . IDENT_0 IDENT_3 = mock ( org . openqa . selenium . grid . session . IDENT_0 . class ) ; when ( IDENT_3 . test ( any ( ) ) ) . thenReturn ( true ) ; when ( IDENT_3 . apply ( any ( ) ) ) . thenReturn ( java . util . Optional . of ( session ) ) ; org . openqa . selenium . remote . server . IDENT_4 pipeline = org . openqa . selenium . remote . server . IDENT_4 . builder ( ) . add ( IDENT_1 ) . add ( IDENT_3 ) . create ( ) ; org . openqa . selenium . grid . session . IDENT_2 IDENT_5 = pipeline . METHOD_3 ( org . openqa . selenium . remote . IDENT_6 . create ( new org . openqa . selenium . METHOD_4 ( ) ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 , METHOD_5 ( 1 ) ) . test ( any ( ) ) ; } create ( org . openqa . selenium . IDENT_7 ) { return org . openqa . selenium . remote . IDENT_6 . create ( com . google . common . collect . ImmutableMap . of ( STRING_1 , IDENT_8 . METHOD_6 ( ) ) ) ; }
org . junit . Assert . assertEquals ( session , IDENT_5 )