* Test serialization of a simple ATAV
*/
@Test
public void testStringAtavStaticSerialization() throws LdapException, IOException, ClassNotFoundException
{
Ava atav = new Ava( "cn", "CN", "test", "Test" );
atav.normalize();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream( baos );
AvaSerializer.serialize(atav, out);
out.flush();
ObjectInputStream in = null;
byte[] data = baos.toByteArray();
in = new ObjectInputStream( new ByteArrayInputStream( data ) );
Ava atav2 = AvaSerializer.deserialize(in);
assertEquals( atav, atav2 );
}