METHOD_0 ( ) { org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . IDENT_3 auth = METHOD_1 ( ) ; boolean IDENT_4 = auth . METHOD_2 ( org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . IDENT_5 . IDENT_6 , org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . IDENT_5 . IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { javax . IDENT_8 . ldap . IDENT_9 ctx ; java . lang . String IDENT_10 ; org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . IDENT_3 . METHOD_3 ( ) ; javax . IDENT_8 . IDENT_11 < javax . IDENT_8 . directory . IDENT_12 > results ; if ( ( ( ( user == null ) || ( IDENT_7 == null ) ) || ( user . equals ( "" ) ) ) || ( IDENT_7 . equals ( "" ) ) ) { return false ; } javax . IDENT_8 . directory . IDENT_13 IDENT_14 = new javax . IDENT_8 . directory . METHOD_4 ( ) ; IDENT_14 . METHOD_5 ( config . METHOD_6 ( ) ) ; java . lang . String filter = java . lang . String . format ( STRING_0 , user ) ; org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . IDENT_15 IDENT_16 = new org . IDENT_0 . atlas . api . IDENT_1 . helpers . IDENT_2 . METHOD_7 ( config , IDENT_17 ) ; try { IDENT_16 . connect ( user , IDENT_7 ) ; ctx = IDENT_16 . METHOD_8 ( ) ; results = ctx . search ( IDENT_17 . METHOD_9 ( ) , filter , IDENT_14 ) ; IDENT_16 . METHOD_10 ( ) ; } catch ( javax . IDENT_8 . IDENT_18 ex ) { java . lang . String msg = org . IDENT_0 . atlas . util . debug . IDENT_19 . METHOD_11 ( ex ) ; return false ; } catch ( java . io . IOException ex ) { java . lang . String msg = org . IDENT_0 . atlas . util . debug . IDENT_19 . METHOD_11 ( ex ) ; return false ; } return true ; }
org . junit . Assert . assertTrue ( IDENT_4 )