METHOD_0 ( ) { org . apache . directory . ldap . client . api . IDENT_0 connection = org . mockito . Mockito . mock ( org . apache . directory . ldap . client . api . IDENT_0 . class ) ; when ( connection . METHOD_1 ( ) ) . thenReturn ( false ) ; when ( connection . METHOD_2 ( IDENT_1 . IDENT_2 , IDENT_3 . IDENT_4 ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } validate ( java . lang . String ) { if ( ( path . isEmpty ( ) ) || ( org . apache . jackrabbit . oak . commons . IDENT_5 . METHOD_3 ( path ) ) ) { return ; } else if ( ( path . charAt ( ( ( path . length ( ) ) - 1 ) ) ) == STRING_0 ) { throw new java . lang . IllegalArgumentException ( ( STRING_1 + path ) ) ; } char IDENT_6 = 0 ; for ( int index = 0 , len = path . length ( ) ; index < len ; index ++ ) { char c = path . charAt ( index ) ; if ( c == STRING_0 ) { if ( IDENT_6 == STRING_0 ) { throw new java . lang . IllegalArgumentException ( ( STRING_2 + path ) ) ; } } IDENT_6 = c ; } }
org . junit . Assert . assertFalse ( validator . validate ( connection ) )