METHOD_0 ( ) { org . pentaho . platform . engine . core . IDENT_0 . IDENT_1 . IDENT_2 IDENT_1 = new org . pentaho . platform . engine . core . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; IDENT_1 . METHOD_2 ( STRING_0 ) ; org . pentaho . platform . api . engine . IDENT_3 IDENT_4 = mock ( org . pentaho . platform . api . engine . IDENT_3 . class , org . pentaho . platform . engine . security . IDENT_5 . IDENT_6 ) ; when ( IDENT_4 . METHOD_3 ( eq ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_7 ) ) ) . thenReturn ( true ) ; when ( IDENT_4 . get ( eq ( java . lang . String . class ) , eq ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_7 ) , org . mockito . Matchers . < org . pentaho . platform . api . engine . IDENT_8 > any ( ) ) ) . thenReturn ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_9 ) ; when ( IDENT_4 . getName ( ) ) . thenReturn ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_6 ) ; IDENT_1 . METHOD_4 ( IDENT_4 ) ; org . pentaho . platform . api . engine . IDENT_10 IDENT_11 = METHOD_5 ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_9 , org . pentaho . platform . engine . security . IDENT_5 . IDENT_12 ) ; doReturn ( IDENT_11 ) . when ( IDENT_13 ) . METHOD_6 ( ) ; java . util . concurrent . IDENT_14 < java . lang . String > IDENT_15 = ( ( java . util . concurrent . IDENT_14 < java . lang . String > ) ( mock ( java . util . concurrent . IDENT_14 . class ) ) ) ; when ( IDENT_15 . call ( ) ) . thenReturn ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_16 ) ; java . lang . String IDENT_17 = IDENT_13 . METHOD_7 ( IDENT_15 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . util . concurrent . IDENT_14 ) { java . lang . String IDENT_18 = org . pentaho . platform . engine . core . IDENT_0 . IDENT_19 . get ( java . lang . String . class , STRING_1 , null ) ; org . pentaho . platform . api . engine . IDENT_8 IDENT_20 = org . pentaho . platform . engine . core . IDENT_0 . IDENT_21 . METHOD_8 ( ) ; org . springframework . security . core . IDENT_22 IDENT_23 = org . springframework . security . core . context . IDENT_24 . METHOD_9 ( ) . METHOD_10 ( ) ; org . pentaho . platform . engine . core . IDENT_0 . IDENT_25 session = null ; try { session = new org . pentaho . platform . engine . core . IDENT_0 . METHOD_11 ( IDENT_18 ) ; session . METHOD_12 ( IDENT_18 ) ; org . pentaho . platform . engine . core . IDENT_0 . IDENT_21 . METHOD_13 ( session ) ; org . springframework . security . core . context . IDENT_24 . METHOD_14 ( ) ; org . springframework . security . core . IDENT_22 auth = METHOD_15 ( IDENT_18 ) ; org . springframework . security . core . context . IDENT_24 . METHOD_9 ( ) . METHOD_16 ( auth ) ; return IDENT_15 . call ( ) ; } finally { if ( session != null ) { try { session . METHOD_17 ( ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; } } org . pentaho . platform . engine . core . IDENT_0 . IDENT_21 . METHOD_13 ( IDENT_20 ) ; org . springframework . security . core . context . IDENT_24 . METHOD_9 ( ) . METHOD_16 ( IDENT_23 ) ; } }
org . junit . Assert . assertEquals ( org . pentaho . platform . engine . security . IDENT_5 . IDENT_16 , IDENT_17 )