* Test for the class javax.naming.ldap.LdapReferralException
*
*/
public void testLdapReferralException(){
MockLdapReferralException mlre=new MockLdapReferralException();
MockLdapReferralException mlre2=null;
try{
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(mlre);
out.close();
ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray()));
mlre2 = (MockLdapReferralException) in.readObject();
in.close();
assertEquals(mlre.getExplanation(),mlre2.getExplanation());
}catch (Exception e) {
fail("Failed with:"+e);
}
}