* Test for the class javax.naming.ldap.UnsolicitedNotificationEvent
*
*/
public void testUnsolicitedNotificationEvent(){
MockUnsolicitedNotification mun=new MockUnsolicitedNotification();
UnsolicitedNotificationEvent une=new UnsolicitedNotificationEvent(new Object(), mun);
UnsolicitedNotificationEvent une2=null;
try{
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(une);
out.close();
ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray()));
une2 = (UnsolicitedNotificationEvent) in.readObject();
in.close();
assertEquals(((MockUnsolicitedNotification)une.getNotification()).getIDSerial(),((MockUnsolicitedNotification)une2.getNotification()).getIDSerial());
}catch (Exception e) {
fail("Failed with:"+e);
}
}