METHOD_0 ( ) { final org . apache . IDENT_0 . core . service . IDENT_1 handler = context . mock ( org . apache . IDENT_0 . core . service . IDENT_1 . class ) ; final java . util . concurrent . IDENT_2 close = new java . util . concurrent . METHOD_1 ( 1 ) ; context . METHOD_2 ( new org . IDENT_3 . METHOD_3 ( ) { { METHOD_4 ( handler ) . METHOD_5 ( with ( any ( org . kaazing . IDENT_0 . core . session . IDENT_4 . class ) ) ) ; METHOD_4 ( handler ) . METHOD_6 ( with ( any ( org . kaazing . IDENT_0 . core . session . IDENT_4 . class ) ) ) ; METHOD_4 ( handler ) . METHOD_7 ( with ( any ( org . kaazing . IDENT_0 . core . session . IDENT_4 . class ) ) ) ; METHOD_8 ( new org . IDENT_3 . lib . action . METHOD_9 ( STRING_0 ) { @ org . kaazing . IDENT_5 . transport . IDENT_6 . logging . Override public java . lang . Object invoke ( org . IDENT_3 . api . IDENT_7 IDENT_8 ) throws java . lang . Throwable { close . METHOD_10 ( ) ; return null ; } } ) ; } } ) ; org . apache . IDENT_0 . core . future . IDENT_9 IDENT_10 = IDENT_11 . connect ( STRING_1 , null , handler ) ; IDENT_10 . METHOD_11 ( 10 , java . util . concurrent . TimeUnit . IDENT_12 ) ; IDENT_10 . METHOD_12 ( ) . close ( false ) ; IDENT_13 . METHOD_13 ( ) ; "<AssertPlaceHolder>" ; IDENT_14 . METHOD_14 ( java . util . Arrays . asList ( STRING_2 , STRING_3 0 , STRING_4 , STRING_5 , STRING_6 , STRING_7 , STRING_8 , STRING_9 ) ) ; IDENT_14 . METHOD_15 ( java . util . Collections . singletonList ( STRING_3 ) ) ; } METHOD_11 ( long , java . util . concurrent . TimeUnit ) { return METHOD_16 ( unit . METHOD_17 ( IDENT_15 ) , true ) ; }
org . junit . Assert . assertTrue ( close . METHOD_11 ( 10 , java . util . concurrent . TimeUnit . IDENT_12 ) )