METHOD_0 ( ) { org . apache . IDENT_0 . impl . IDENT_1 . collect . IDENT_2 < java . lang . String > IDENT_3 = mock ( org . apache . IDENT_0 . impl . IDENT_1 . collect . IDENT_2 . class ) ; org . apache . IDENT_0 . io . IDENT_4 < java . lang . String > IDENT_5 = mock ( org . apache . IDENT_0 . io . IDENT_4 . class ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . apache . IDENT_0 . IDENT_6 ) { org . apache . IDENT_0 . impl . IDENT_1 . collect . IDENT_2 < T > impl = METHOD_3 ( IDENT_7 ) ; org . apache . IDENT_0 . IDENT_8 < T > IDENT_9 = impl . METHOD_1 ( ) ; if ( ( IDENT_9 != null ) && ( IDENT_9 instanceof org . apache . IDENT_0 . io . IDENT_4 ) ) { return ( ( org . apache . IDENT_0 . io . IDENT_4 < T > ) ( IDENT_9 ) ) ; } org . apache . IDENT_0 . io . IDENT_4 < T > IDENT_10 = null ; if ( IDENT_11 . containsKey ( IDENT_7 ) ) { for ( org . apache . IDENT_0 . IDENT_12 target : IDENT_11 . get ( impl ) ) { if ( target instanceof org . apache . IDENT_0 . io . IDENT_4 ) { IDENT_10 = ( ( org . apache . IDENT_0 . io . IDENT_4 < T > ) ( target ) ) ; break ; } } } if ( IDENT_10 == null ) { org . apache . IDENT_0 . IDENT_8 < T > IDENT_13 = METHOD_4 ( IDENT_7 . METHOD_5 ( ) ) ; if ( ! ( IDENT_13 instanceof org . apache . IDENT_0 . io . IDENT_4 ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_0 + STRING_1 ) ) ; } else { IDENT_10 = ( ( org . apache . IDENT_0 . io . IDENT_4 < T > ) ( IDENT_13 ) ) ; METHOD_6 ( impl , IDENT_10 ) ; } } return IDENT_10 ; }
org . junit . Assert . assertEquals ( IDENT_5 , pipeline . METHOD_2 ( IDENT_3 ) )