* Test the copy constructor of a ClientEntry
*/
@Test
public void testCopyConstructorClientEntry() throws NamingException
{
Entry clientEntry = new DefaultClientEntry();
clientEntry.setDn( new LdapDN( "ou=system" ) );
clientEntry.add( "cn", "test1", "test2" );
clientEntry.add( "objectClass", "top", "person" );
Entry copyEntry = new DefaultServerEntry( registries, clientEntry );
assertTrue( copyEntry instanceof ServerEntry );
assertTrue( copyEntry.contains( "objectClass", "top", "person" ) );
assertTrue( copyEntry.contains( "cn", "test1", "test2" ) );
clientEntry.removeAttributes( "cn" );
assertTrue( copyEntry.contains( "objectClass", "top", "person" ) );
assertTrue( copyEntry.contains( "cn", "test1", "test2" ) );
}