byte[] data = baos.toByteArray();
in = new ObjectInputStream( new ByteArrayInputStream( data ) );
Entry entry2 = new DefaultEntry( schemaManager );
entry2.readExternal( in );
assertEquals( entry1, entry2 );
assertTrue( entry2.contains( "ObjectClass", "top", "domain" ) );
assertEquals( "", entry2.getDn().toString() );
}