METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( anyString ( ) , anyString ( ) , anyString ( ) , anyString ( ) , anyString ( ) , eq ( IDENT_1 . IDENT_2 ) ) ) . thenReturn ( true ) ; when ( IDENT_3 . create ( any ( org . elasticsearch . rest . IDENT_4 . class ) ) ) . thenReturn ( context ) ; IDENT_5 . METHOD_2 ( IDENT_6 . IDENT_7 , new io . IDENT_8 . elasticsearch . plugin . IDENT_9 . METHOD_3 ( IDENT_10 , STRING_0 , false , java . util . Collections . METHOD_4 ( ) , null , null ) ) ; com . IDENT_11 . IDENT_12 . user . User IDENT_13 = new com . IDENT_11 . IDENT_12 . user . User ( IDENT_10 ) ; IDENT_13 . METHOD_5 ( io . IDENT_8 . elasticsearch . plugin . IDENT_14 . IDENT_15 . METHOD_6 ( IDENT_10 ) ) ; IDENT_13 . METHOD_5 ( io . IDENT_8 . elasticsearch . plugin . IDENT_14 . IDENT_15 . METHOD_7 ( IDENT_10 ) ) ; IDENT_13 . METHOD_5 ( IDENT_16 . IDENT_17 ) ; IDENT_13 . METHOD_5 ( STRING_1 ) ; com . IDENT_11 . IDENT_12 . user . User user = backend . METHOD_8 ( new com . IDENT_11 . IDENT_12 . user . METHOD_9 ( IDENT_10 ) ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( com . IDENT_11 . IDENT_12 . user . METHOD_9 ) { if ( IDENT_18 == null ) { throw new org . elasticsearch . METHOD_10 ( STRING_2 ) ; } org . elasticsearch . common . IDENT_19 . IDENT_20 IDENT_19 = METHOD_11 ( ) ; if ( exists ( IDENT_19 , IDENT_18 . METHOD_12 ( ) ) ) { final java . lang . String hash = IDENT_19 . get ( ( ( IDENT_18 . METHOD_12 ( ) ) + ( io . IDENT_8 . elasticsearch . plugin . auth . IDENT_21 . IDENT_22 ) ) ) ; if ( org . apache . commons . lang . StringUtils . METHOD_13 ( hash ) ) { final java . lang . String IDENT_23 = new java . lang . String ( javax . xml . IDENT_24 . IDENT_25 . METHOD_14 ( hash ) , java . nio . IDENT_26 . IDENT_27 . UTF_8 ) . trim ( ) ; final java . lang . String IDENT_28 = new java . lang . String ( IDENT_18 . METHOD_15 ( ) ) ; if ( IDENT_23 . equals ( IDENT_28 ) ) { return new com . IDENT_11 . IDENT_12 . user . User ( IDENT_18 . METHOD_12 ( ) ) ; } } } throw new org . elasticsearch . METHOD_10 ( STRING_3 , IDENT_18 . METHOD_12 ( ) ) ; }
org . junit . Assert . assertEquals ( IDENT_13 , user )