METHOD_0 ( ) { java . lang . String request = STRING_0 ; java . lang . String response = STRING_1 ; java . lang . String result = STRING_2 ; org . apache . IDENT_0 . IDENT_1 . impl . channel . IDENT_2 IDENT_3 = mock ( org . apache . IDENT_0 . IDENT_1 . impl . channel . IDENT_2 . class ) ; java . util . concurrent . IDENT_4 < org . apache . IDENT_0 . IDENT_1 . impl . channel . IDENT_2 > IDENT_5 = new java . util . concurrent . METHOD_1 ( ) ; when ( IDENT_6 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; com . google . common . util . concurrent . IDENT_7 < java . lang . String > IDENT_8 = com . google . common . util . concurrent . IDENT_7 . create ( ) ; when ( processor . METHOD_3 ( ) ) . thenReturn ( request ) ; when ( processor . METHOD_4 ( METHOD_5 ( IDENT_3 ) , eq ( request ) ) ) . thenReturn ( IDENT_8 ) ; when ( processor . METHOD_6 ( eq ( response ) ) ) . thenReturn ( result ) ; java . util . concurrent . METHOD_1 < java . lang . String > IDENT_9 = processor . process ( ) ; verify ( IDENT_6 , times ( 1 ) ) . METHOD_2 ( ) ; org . apache . IDENT_0 . common . concurrent . IDENT_10 . METHOD_7 ( IDENT_5 , IDENT_3 ) ; IDENT_8 . set ( response ) ; "<AssertPlaceHolder>" ; } get ( ) { while ( true ) { try { return IDENT_11 . get ( 100 , TimeUnit . IDENT_12 ) ; } catch ( java . lang . IDENT_13 e ) { log . warn ( STRING_3 , e ) ; return - 1L ; } catch ( java . util . concurrent . IDENT_14 e ) { throw new java . lang . IllegalArgumentException ( STRING_4 ) ; } catch ( java . util . concurrent . IDENT_15 e ) { continue ; } } }
org . junit . Assert . assertEquals ( result , IDENT_9 . get ( ) )