METHOD_0 ( ) { final com . google . IDENT_0 . IDENT_1 < org . apache . ambari . server . ldap . domain . IDENT_2 > IDENT_3 = METHOD_1 ( com . google . IDENT_0 . IDENT_1 . class ) ; org . apache . ambari . server . ldap . domain . IDENT_2 configuration = METHOD_1 ( org . apache . ambari . server . ldap . domain . IDENT_2 . class ) ; org . apache . ambari . server . security . authorization . IDENT_4 IDENT_5 = METHOD_1 ( org . apache . ambari . server . security . authorization . IDENT_4 . class ) ; org . springframework . ldap . core . IDENT_6 IDENT_7 = METHOD_1 ( org . springframework . ldap . core . IDENT_6 . class ) ; org . apache . ambari . server . security . authorization . IDENT_8 IDENT_9 = METHOD_1 ( org . apache . ambari . server . security . authorization . IDENT_8 . class ) ; org . easymock . IDENT_10 < org . springframework . ldap . core . IDENT_11 > IDENT_12 = org . easymock . EasyMock . METHOD_2 ( ) ; org . springframework . ldap . control . IDENT_13 processor = METHOD_1 ( org . springframework . ldap . control . IDENT_13 . class ) ; org . springframework . ldap . control . IDENT_14 IDENT_15 = METHOD_1 ( org . springframework . ldap . control . IDENT_14 . class ) ; org . apache . ambari . server . security . ldap . IDENT_16 dto = new org . apache . ambari . server . security . ldap . METHOD_3 ( ) ; java . util . List < org . apache . ambari . server . security . ldap . METHOD_3 > list = new java . util . METHOD_4 ( ) ; list . add ( dto ) ; expect ( IDENT_3 . get ( ) ) . andReturn ( configuration ) . METHOD_5 ( ) ; expect ( configuration . METHOD_6 ( ) ) . andReturn ( IDENT_9 ) . METHOD_5 ( ) ; expect ( IDENT_9 . METHOD_7 ( ) ) . andReturn ( false ) . METHOD_5 ( ) ; expect ( IDENT_9 . METHOD_8 ( ) ) . andReturn ( STRING_0 ) . METHOD_5 ( ) ; expect ( IDENT_9 . METHOD_9 ( ) ) . andReturn ( STRING_1 ) . METHOD_5 ( ) ; expect ( IDENT_9 . METHOD_10 ( ) ) . andReturn ( STRING_2 ) . METHOD_5 ( ) ; expect ( IDENT_9 . METHOD_11 ( ) ) . andReturn ( STRING_3 ) . METHOD_5 ( ) ; expect ( IDENT_7 . search ( eq ( org . springframework . ldap . support . IDENT_17 . METHOD_12 ( STRING_3 ) ) , eq ( STRING_4 ) , METHOD_13 ( javax . IDENT_18 . directory . IDENT_19 . class ) , METHOD_14 ( IDENT_12 ) ) ) . andReturn ( list ) ; replay ( IDENT_7 , IDENT_9 , IDENT_5 , IDENT_3 , configuration , processor , IDENT_15 ) ; org . apache . ambari . server . security . ldap . IDENT_20 . IDENT_21 IDENT_22 = new org . apache . ambari . server . security . ldap . IDENT_20 . METHOD_15 ( IDENT_3 , IDENT_5 ) ; IDENT_22 . METHOD_16 ( IDENT_7 ) ; IDENT_22 . METHOD_17 ( processor ) ; "<AssertPlaceHolder>" ; verify ( IDENT_7 , IDENT_9 , IDENT_5 , IDENT_3 , configuration , processor , IDENT_15 ) ; } METHOD_18 ( java . lang . String ) { org . apache . ambari . server . security . authorization . IDENT_8 IDENT_9 = METHOD_19 ( ) ; java . util . Set < org . apache . ambari . server . security . ldap . METHOD_3 > IDENT_23 ; IDENT_24 = METHOD_20 ( IDENT_24 , IDENT_9 . METHOD_21 ( ) ) ; org . springframework . ldap . filter . IDENT_25 IDENT_26 = METHOD_22 ( IDENT_24 , IDENT_9 . METHOD_23 ( ) ) ; if ( ( IDENT_24 != null ) && ( IDENT_26 != null ) ) { org . apache . ambari . server . security . ldap . IDENT_27 . LOG . trace ( STRING_5 , IDENT_26 . encode ( ) , IDENT_9 . METHOD_11 ( ) ) ; IDENT_23 = METHOD_24 ( IDENT_9 . METHOD_11 ( ) , IDENT_26 ) ; } else if ( ( IDENT_24 != null ) && ( METHOD_25 ( IDENT_24 ) ) ) { org . apache . ambari . server . security . ldap . IDENT_27 . LOG . trace ( STRING_6 , IDENT_24 ) ; org . springframework . ldap . filter . IDENT_25 filter = new org . springframework . ldap . filter . METHOD_26 ( org . apache . ambari . server . security . ldap . IDENT_27 . IDENT_28 , IDENT_9 . METHOD_8 ( ) ) ; IDENT_23 = METHOD_24 ( IDENT_24 , filter ) ; } else { org . apache . ambari . server . security . ldap . IDENT_27 . LOG . trace ( STRING_7 , IDENT_24 ) ; org . springframework . ldap . filter . IDENT_25 filter = new org . springframework . ldap . filter . METHOD_27 ( ) . and ( new org . springframework . ldap . filter . METHOD_26 ( org . apache . ambari . server . security . ldap . IDENT_27 . IDENT_28 , IDENT_9 . METHOD_8 ( ) ) ) . and ( new org . springframework . ldap . filter . METHOD_26 ( IDENT_9 . METHOD_9 ( ) , IDENT_24 ) ) ; IDENT_23 = METHOD_24 ( IDENT_9 . METHOD_11 ( ) , filter ) ; } return IDENT_23 . isEmpty ( ) ? null : IDENT_23 . iterator ( ) . next ( ) ; }
org . junit . Assert . assertEquals ( dto , IDENT_22 . METHOD_18 ( "foo" ) )