METHOD_0 ( ) { "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { if ( org . apache . commons . lang . StringUtils . isEmpty ( index ) ) { return io . IDENT_0 . elasticsearch . plugin . model . IDENT_1 . IDENT_2 ; } java . util . regex . IDENT_3 matcher = IDENT_4 . matcher ( index ) ; if ( matcher . matches ( ) ) { return new io . IDENT_0 . elasticsearch . plugin . model . METHOD_2 ( matcher . group ( "name" ) , matcher . group ( STRING_0 ) ) ; } return new io . IDENT_0 . elasticsearch . plugin . model . METHOD_2 ( index , null ) ; }
org . junit . Assert . assertEquals ( new io . IDENT_0 . elasticsearch . plugin . model . METHOD_2 ( "foo" , null ) , utils . METHOD_1 ( "foo" ) )