METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . http . IDENT_2 IDENT_3 = METHOD_1 ( STRING_0 ) ; com . IDENT_0 . IDENT_1 . IDENT_4 . init ( com . IDENT_0 . IDENT_5 . of ( ) , "/" ) ; java . util . Map < java . lang . String , java . lang . String > headers = new java . util . HashMap ( ) ; headers . put ( STRING_1 , STRING_2 ) ; when ( IDENT_3 . parameters ( ) ) . thenReturn ( new java . util . HashMap ( ) ) ; when ( IDENT_3 . headers ( ) ) . thenReturn ( headers ) ; com . IDENT_0 . IDENT_1 . http . IDENT_2 request = new com . IDENT_0 . IDENT_1 . http . METHOD_2 ( IDENT_3 ) ; com . IDENT_0 . IDENT_1 . http . Response response = METHOD_3 ( 200 ) ; com . IDENT_0 . IDENT_1 . IDENT_6 context = new com . IDENT_0 . IDENT_1 . METHOD_4 ( request , response ) ; context . METHOD_5 ( com . IDENT_0 . IDENT_1 . route . IDENT_7 . builder ( ) . action ( com . IDENT_0 . security . IDENT_8 . IDENT_9 . class . METHOD_6 ( STRING_3 , com . IDENT_0 . IDENT_1 . METHOD_4 . class ) ) . METHOD_7 ( com . IDENT_0 . security . IDENT_8 . IDENT_9 . class ) . target ( new com . IDENT_0 . security . IDENT_8 . METHOD_8 ( ) ) . build ( ) ) ; com . IDENT_0 . IDENT_1 . IDENT_4 . set ( new com . IDENT_0 . IDENT_1 . METHOD_9 ( request , response , null ) ) ; com . IDENT_0 . security . web . auth . IDENT_10 IDENT_11 = com . IDENT_0 . security . web . auth . IDENT_10 . builder ( ) . build ( ) ; IDENT_11 . METHOD_10 ( STRING_4 , STRING_5 ) ; com . IDENT_0 . security . web . auth . IDENT_12 IDENT_13 = new com . IDENT_0 . security . web . auth . METHOD_11 ( IDENT_11 ) ; boolean IDENT_14 = IDENT_13 . METHOD_12 ( context ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( com . IDENT_0 . IDENT_1 . METHOD_4 ) { if ( IDENT_15 . METHOD_13 ( context . method ( ) ) ) { if ( IDENT_15 . METHOD_14 ( context . uri ( ) ) ) { return true ; } this . METHOD_15 ( context ) ; return true ; } if ( IDENT_15 . METHOD_16 ( context . uri ( ) ) ) { return true ; } java . lang . String IDENT_16 = context . session ( ) . METHOD_17 ( IDENT_17 ) ; if ( com . IDENT_0 . IDENT_18 . IDENT_19 . isEmpty ( IDENT_16 ) ) { IDENT_15 . METHOD_18 ( ) . accept ( context ) ; return false ; } java . lang . String token = IDENT_15 . METHOD_19 ( ) . apply ( context . request ( ) ) ; if ( com . IDENT_0 . IDENT_18 . IDENT_19 . isEmpty ( token ) ) { IDENT_15 . METHOD_18 ( ) . accept ( context ) ; return false ; } java . lang . String hash = new java . lang . String ( java . util . IDENT_20 . METHOD_20 ( ) . decode ( token ) ) ; if ( ! ( com . IDENT_0 . IDENT_18 . IDENT_21 . METHOD_21 ( IDENT_16 , hash ) ) ) { IDENT_15 . METHOD_18 ( ) . accept ( context ) ; return false ; } return true ; }
org . junit . Assert . assertTrue ( IDENT_14 )