Removed excessive annotation. Organized imports.
Added verification for 'close' method of LDAPConnection.
Added checks of ResultCode and fixed error in test.