METHOD_0 ( ) { org . springframework . security . core . context . IDENT_0 . METHOD_1 ( ) . METHOD_2 ( null ) ; javax . security . auth . IDENT_1 subject = new javax . security . auth . METHOD_3 ( ) ; org . pentaho . platform . osgi . IDENT_2 . IDENT_3 IDENT_4 = new org . pentaho . platform . osgi . IDENT_2 . METHOD_4 ( STRING_0 ) ; org . pentaho . platform . osgi . IDENT_5 IDENT_6 = new org . pentaho . platform . osgi . METHOD_5 ( ) ; org . springframework . security . authentication . IDENT_7 IDENT_8 = mock ( org . springframework . security . authentication . IDENT_7 . class ) ; org . pentaho . platform . api . engine . IDENT_9 IDENT_10 = mock ( org . pentaho . platform . api . engine . IDENT_9 . class ) ; org . pentaho . platform . api . engine . IDENT_11 IDENT_12 = mock ( org . pentaho . platform . api . engine . IDENT_11 . class ) ; org . springframework . security . core . IDENT_13 authentication = mock ( org . springframework . security . core . IDENT_13 . class ) ; java . util . Collection IDENT_14 = java . util . Arrays . asList ( new org . springframework . security . core . IDENT_15 [ ] { new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_1 ) , new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_2 ) } ) ; org . springframework . security . core . IDENT_13 IDENT_17 = mock ( org . springframework . security . core . IDENT_13 . class ) ; java . util . Collection IDENT_18 = java . util . Arrays . asList ( new org . springframework . security . core . IDENT_15 [ ] { new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_1 ) , new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_3 1 ) } ) ; org . pentaho . platform . engine . core . IDENT_19 . IDENT_20 . METHOD_7 ( IDENT_10 , org . pentaho . platform . api . engine . IDENT_9 . class ) ; when ( IDENT_12 . METHOD_8 ( IDENT_21 . IDENT_22 ) ) . thenReturn ( true ) . thenReturn ( true ) . thenReturn ( false ) ; when ( authentication . METHOD_9 ( ) ) . thenReturn ( IDENT_14 ) ; when ( authentication . getName ( ) ) . thenReturn ( STRING_0 ) ; when ( authentication . METHOD_10 ( ) ) . thenReturn ( true ) ; when ( IDENT_17 . METHOD_9 ( ) ) . thenReturn ( IDENT_18 ) ; when ( IDENT_17 . getName ( ) ) . thenReturn ( STRING_4 ) ; when ( IDENT_17 . METHOD_10 ( ) ) . thenReturn ( true ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_0 ) ) ) ) . thenReturn ( authentication ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_4 ) ) ) ) . thenReturn ( authentication ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_5 ) ) ) ) . METHOD_14 ( new org . springframework . security . core . IDENT_23 . METHOD_15 ( STRING_6 ) ) ; when ( IDENT_10 . METHOD_16 ( null , STRING_0 ) ) . thenReturn ( java . util . Arrays . < java . lang . String > asList ( STRING_1 , STRING_2 ) ) ; when ( IDENT_10 . METHOD_16 ( null , STRING_4 ) ) . thenReturn ( java . util . Arrays . < java . lang . String > asList ( STRING_1 , STRING_3 1 ) ) ; IDENT_6 . METHOD_17 ( IDENT_8 ) ; IDENT_6 . METHOD_18 ( IDENT_12 ) ; IDENT_6 . METHOD_19 ( subject , IDENT_4 , java . util . Collections . METHOD_20 ( ) , java . util . Collections . METHOD_20 ( ) ) ; IDENT_6 . METHOD_21 ( ) ; IDENT_6 . commit ( ) ; verify ( IDENT_8 ) . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_0 ) ) ) ; "<AssertPlaceHolder>" ; subject . METHOD_22 ( ) . toArray ( ) [ 3 ] . equals ( STRING_7 ) ; IDENT_4 = new org . pentaho . platform . osgi . IDENT_2 . METHOD_4 ( STRING_8 ) ; IDENT_6 . METHOD_19 ( subject , IDENT_4 , java . util . Collections . METHOD_20 ( ) , java . util . Collections . METHOD_20 ( ) ) ; try { IDENT_6 . METHOD_21 ( ) ; org . junit . Assert . fail ( STRING_3 0 ) ; } catch ( javax . security . auth . METHOD_21 . IDENT_24 IDENT_25 ) { } } size ( ) { if ( ( IDENT_26 ) == null ) { return 0 ; } else { return IDENT_26 . size ( ) ; } }
org . junit . Assert . assertEquals ( 4 , subject . METHOD_22 ( ) . size ( ) )