METHOD_0 ( ) { org . IDENT_0 . api . rest . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . IDENT_0 . api . rest . IDENT_1 . class ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_0 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) ) ) . METHOD_1 ( ) ; try { IDENT_2 . METHOD_0 ( null , STRING_0 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . IDENT_0 . api . rest . exception . IDENT_3 e ) { } try { IDENT_2 . METHOD_0 ( " " , STRING_0 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . IDENT_0 . api . rest . exception . IDENT_3 e ) { } try { IDENT_2 . METHOD_0 ( org . IDENT_0 . api . rest . IDENT_4 . IDENT_5 , null ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . IDENT_0 . api . rest . exception . IDENT_3 e ) { } try { IDENT_2 . METHOD_0 ( org . IDENT_0 . api . rest . IDENT_4 . IDENT_5 , " " ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . IDENT_0 . api . rest . exception . IDENT_3 e ) { } java . util . List < org . jboss . elasticsearch . tools . content . IDENT_6 > IDENT_7 = new java . util . ArrayList ( ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_2 ( org . IDENT_0 . api . rest . IDENT_4 . IDENT_5 ) ) . thenReturn ( IDENT_7 ) ; java . util . Map < java . lang . String , java . lang . Object > ret = new java . util . HashMap ( ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_3 ( IDENT_7 , STRING_2 ) ) . thenReturn ( ret ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String , java . lang . String ) { if ( org . IDENT_0 . api . util . IDENT_8 . METHOD_4 ( IDENT_9 ) ) { throw new org . IDENT_0 . api . rest . exception . METHOD_5 ( STRING_3 ) ; } if ( org . IDENT_0 . api . util . IDENT_8 . METHOD_4 ( id ) ) { throw new org . IDENT_0 . api . rest . exception . METHOD_5 ( org . IDENT_0 . api . rest . IDENT_1 . IDENT_10 ) ; } java . util . List < org . jboss . elasticsearch . tools . content . IDENT_6 > IDENT_11 = METHOD_2 ( IDENT_9 ) ; return METHOD_3 ( IDENT_11 , id ) ; }
org . junit . Assert . assertEquals ( ret , IDENT_2 . METHOD_0 ( org . IDENT_0 . api . rest . IDENT_4 . IDENT_5 , STRING_2 ) )