METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . IDENT_2 IDENT_1 = new org . apache . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; IDENT_1 . METHOD_2 ( STRING_0 ) ; IDENT_1 . METHOD_3 ( STRING_1 ) ; IDENT_1 . METHOD_4 ( STRING_2 ) ; java . util . HashMap < java . lang . String , java . lang . String > IDENT_3 = new java . util . HashMap ( ) ; IDENT_3 . put ( STRING_3 , STRING_4 ) ; IDENT_1 . METHOD_5 ( IDENT_3 ) ; org . apache . IDENT_4 . IDENT_1 . ldap . IDENT_5 IDENT_6 = mock ( org . apache . IDENT_4 . IDENT_1 . ldap . IDENT_5 . class ) ; javax . IDENT_7 . ldap . IDENT_8 IDENT_9 = mock ( javax . IDENT_7 . ldap . IDENT_8 . class ) ; org . apache . IDENT_4 . session . IDENT_10 session = mock ( org . apache . IDENT_4 . session . IDENT_10 . class ) ; javax . IDENT_7 . directory . IDENT_11 IDENT_12 = new javax . IDENT_7 . directory . METHOD_6 ( ) ; IDENT_12 . put ( IDENT_1 . METHOD_7 ( ) , STRING_5 ) ; IDENT_12 . put ( IDENT_1 . METHOD_8 ( ) , STRING_6 ) ; javax . IDENT_7 . directory . METHOD_6 IDENT_13 = new javax . IDENT_7 . directory . METHOD_6 ( ) ; IDENT_13 . put ( IDENT_1 . METHOD_7 ( ) , STRING_7 ) ; IDENT_13 . put ( IDENT_1 . METHOD_8 ( ) , STRING_8 ) ; javax . IDENT_7 . directory . METHOD_6 IDENT_14 = new javax . IDENT_7 . directory . METHOD_6 ( ) ; IDENT_14 . put ( IDENT_1 . METHOD_7 ( ) , STRING_3 ) ; IDENT_14 . put ( IDENT_1 . METHOD_8 ( ) , STRING_6 ) ; javax . IDENT_7 . IDENT_15 < javax . IDENT_7 . directory . IDENT_16 > results = METHOD_9 ( IDENT_12 , IDENT_13 , IDENT_14 ) ; when ( IDENT_9 . search ( any ( java . lang . String . class ) , any ( java . lang . String . class ) , any ( javax . IDENT_7 . directory . IDENT_17 . class ) ) ) . thenReturn ( results ) ; java . util . Set < java . lang . String > IDENT_18 = IDENT_1 . METHOD_10 ( new org . apache . IDENT_4 . subject . METHOD_11 ( STRING_6 , STRING_9 ) , STRING_6 , IDENT_9 , IDENT_6 , session ) ; verify ( IDENT_9 ) . search ( STRING_0 , STRING_7 0 , IDENT_1 . METHOD_12 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( ) { javax . IDENT_7 . directory . IDENT_17 IDENT_19 = org . apache . IDENT_0 . IDENT_1 . METHOD_1 . IDENT_20 ; if ( STRING_10 . equalsIgnoreCase ( IDENT_21 ) ) { IDENT_19 = org . apache . IDENT_0 . IDENT_1 . METHOD_1 . IDENT_22 ; } else if ( STRING_11 . equalsIgnoreCase ( IDENT_21 ) ) { IDENT_19 = org . apache . IDENT_0 . IDENT_1 . METHOD_1 . IDENT_23 ; } return IDENT_19 ; }
org . junit . Assert . assertEquals ( new java . util . HashSet ( java . util . Arrays . asList ( STRING_5 , STRING_4 ) ) , IDENT_18 )