METHOD_0 ( ) { org . IDENT_0 . api . IDENT_1 . IDENT_2 IDENT_3 = METHOD_1 ( ) ; java . util . Map < java . lang . String , java . lang . Object > IDENT_4 = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; org . mockito . Mockito . when ( IDENT_3 . IDENT_5 . METHOD_0 ( STRING_0 , IDENT_4 ) ) . thenReturn ( org . mockito . Mockito . mock ( org . IDENT_0 . api . IDENT_1 . IDENT_6 . class ) ) ; org . mockito . Mockito . when ( IDENT_3 . IDENT_7 . METHOD_0 ( STRING_0 , IDENT_4 ) ) . thenReturn ( STRING_1 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_3 . IDENT_8 ) . METHOD_2 ( ) ; org . mockito . Mockito . METHOD_3 ( IDENT_3 . IDENT_5 , IDENT_3 . IDENT_7 , IDENT_3 . IDENT_8 ) ; org . mockito . Mockito . when ( IDENT_3 . IDENT_5 . METHOD_0 ( STRING_0 , IDENT_4 ) ) . METHOD_4 ( new org . IDENT_0 . api . IDENT_1 . METHOD_5 ( "" ) ) ; try { IDENT_3 . METHOD_0 ( STRING_0 , IDENT_4 ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( org . IDENT_0 . api . IDENT_1 . METHOD_5 e ) { } org . mockito . Mockito . METHOD_6 ( IDENT_3 . IDENT_7 , IDENT_3 . IDENT_8 ) ; } METHOD_0 ( java . lang . String , java . util . Map ) { java . lang . String id = org . elasticsearch . common . IDENT_9 . METHOD_7 ( ) ; org . IDENT_0 . api . IDENT_1 . IDENT_10 t = new org . IDENT_0 . api . IDENT_1 . METHOD_8 ( ) ; t . setId ( id ) ; t . METHOD_9 ( IDENT_11 ) ; t . METHOD_10 ( new java . util . Date ( ) ) ; t . METHOD_11 ( IDENT_12 . IDENT_13 ) ; t . METHOD_12 ( IDENT_4 ) ; em . METHOD_13 ( t ) ; return id ; }
org . junit . Assert . assertEquals ( STRING_1 , IDENT_3 . METHOD_0 ( STRING_0 , IDENT_4 ) )