METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . commons . IDENT_2 . IDENT_3 instance = new com . IDENT_0 . IDENT_1 . commons . IDENT_2 . METHOD_1 ( STRING_0 ) ; com . IDENT_4 . IDENT_5 . IDENT_2 . api . IDENT_6 expResult = IDENT_7 ; com . IDENT_4 . IDENT_5 . IDENT_2 . api . IDENT_6 result = instance . METHOD_2 ( IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( com . IDENT_4 . IDENT_5 . IDENT_2 . api . IDENT_9 ) { final java . util . List < com . IDENT_4 . IDENT_5 . IDENT_2 . api . IDENT_6 > IDENT_10 = IDENT_8 . METHOD_3 ( ) ; final java . util . regex . IDENT_11 p = METHOD_4 ( ) ; boolean IDENT_12 = ( IDENT_8 . METHOD_5 ( ) ) != null ; boolean IDENT_13 = ( IDENT_10 . size ( ) ) > 0 ; for ( final com . IDENT_4 . IDENT_5 . IDENT_2 . api . IDENT_6 IDENT_14 : IDENT_10 ) { final java . util . regex . IDENT_15 m = p . matcher ( IDENT_14 . getName ( ) ) ; if ( m . find ( ) ) { return IDENT_14 ; } } if ( IDENT_12 ) { return IDENT_8 . METHOD_5 ( ) ; } else if ( IDENT_13 ) { return IDENT_10 . get ( 0 ) ; } else { return null ; } }
org . junit . Assert . assertEquals ( expResult , result )