METHOD_0 ( ) { "<AssertPlaceHolder>" ; } METHOD_1 ( ) { IDENT_0 . METHOD_2 ( ) ; javax . persistence . IDENT_1 em = null ; org . IDENT_2 . security . api . User user = IDENT_3 . METHOD_3 ( ) ; org . IDENT_2 . security . api . IDENT_4 org = IDENT_3 . METHOD_4 ( ) ; java . lang . String IDENT_5 = org . METHOD_5 ( ) ; java . util . Set < org . IDENT_2 . security . api . IDENT_6 > IDENT_7 = user . METHOD_6 ( ) ; try { em = IDENT_8 . METHOD_7 ( ) ; javax . persistence . Query q = em . METHOD_8 ( STRING_0 ) ; q . METHOD_9 ( STRING_1 , IDENT_3 . METHOD_4 ( ) . getId ( ) ) ; java . util . List < org . IDENT_2 . IDENT_9 . admin . impl . IDENT_10 > IDENT_11 = q . METHOD_10 ( ) ; if ( ( ! ( user . METHOD_11 ( IDENT_12 . IDENT_13 ) ) ) && ( ! ( user . METHOD_11 ( IDENT_5 ) ) ) ) { for ( java . util . Iterator < org . IDENT_2 . IDENT_9 . admin . impl . IDENT_10 > IDENT_14 = IDENT_11 . iterator ( ) ; IDENT_14 . hasNext ( ) ; ) { org . IDENT_2 . IDENT_9 . admin . impl . IDENT_10 IDENT_15 = IDENT_14 . next ( ) ; java . util . Set < java . lang . String > IDENT_16 = IDENT_15 . METHOD_12 ( ) ; if ( ( IDENT_16 == null ) || ( IDENT_16 . isEmpty ( ) ) ) { continue ; } boolean IDENT_17 = false ; for ( org . IDENT_2 . security . api . IDENT_6 IDENT_18 : IDENT_7 ) { if ( IDENT_16 . contains ( IDENT_18 . getName ( ) ) ) { IDENT_17 = true ; break ; } } if ( ! IDENT_17 ) { IDENT_14 . remove ( ) ; } } } java . util . Map < java . lang . String , org . IDENT_2 . IDENT_9 . admin . api . IDENT_19 > map = new java . util . METHOD_13 ( ) ; for ( org . IDENT_2 . IDENT_9 . admin . impl . IDENT_10 IDENT_15 : IDENT_11 ) { map . put ( IDENT_15 . getName ( ) , METHOD_14 ( IDENT_15 , org . getId ( ) ) ) ; } return map ; } finally { if ( em != null ) em . close ( ) ; } }
org . junit . Assert . assertEquals ( 0 , service . METHOD_1 ( ) . size ( ) )