### Question:
ClonedServerEntry implements Entry { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } Entry other; if ( obj instanceof ClonedServerEntry ) { other = ( ( ClonedServerEntry ) obj ).getClonedEntry(); } else if ( obj instanceof Entry ) { other = ( Entry ) obj; } else { return false; } if ( clonedEntry == null ) { return other == null; } else { return clonedEntry.equals( other ); } } ClonedServerEntry();  ClonedServerEntry( Entry originalEntry ); Entry getOriginalEntry(); Entry getClonedEntry(); @Override Entry add( AttributeType attributeType, byte[]... values ); @Override Entry add( AttributeType attributeType, String... values ); @Override Entry add( AttributeType attributeType, Value... values ); @Override Entry add( String upId, AttributeType attributeType, byte[]... values ); @Override Entry add( String upId, AttributeType attributeType, String... values ); @Override Entry add( String upId, AttributeType attributeType, Value... values ); @Override boolean contains( AttributeType attributeType, byte[]... values ); @Override boolean contains( AttributeType attributeType, String... values ); @Override boolean contains( AttributeType attributeType, Value... values ); @Override boolean containsAttribute( AttributeType attributeType ); @Override Attribute get( AttributeType attributeType ); @Override Collection<Attribute> getAttributes(); @Override boolean hasObjectClass( Attribute... objectClasses ); @Override Attribute put( AttributeType attributeType, byte[]... values ); @Override Attribute put( AttributeType attributeType, String... values ); @Override Attribute put( AttributeType attributeType, Value... values ); @Override Attribute put( String upId, AttributeType attributeType, byte[]... values ); @Override Attribute put( String upId, AttributeType attributeType, String... values ); @Override Attribute put( String upId, AttributeType attributeType, Value... values ); @Override boolean remove( AttributeType attributeType, byte[]... values ); @Override boolean remove( AttributeType attributeType, String... values ); @Override boolean remove( AttributeType attributeType, Value... values ); @Override List<Attribute> remove( Attribute... attributes ); @Override void removeAttributes( AttributeType... attributes ); @Override Entry add( Attribute... attributes ); @Override Entry add( String upId, String... values ); @Override Entry add( String upId, byte[]... values ); @Override Entry add( String upId, Value... values ); @Override void clear(); @Override boolean contains( Attribute... attributes ); @Override boolean contains( String upId, byte[]... values ); @Override boolean contains( String upId, String... values ); @Override boolean contains( String upId, Value... values ); @Override boolean containsAttribute( String... attributes ); @Override Attribute get( String alias ); @Override Dn getDn(); @Override boolean hasObjectClass( String... objectClasses ); @Override boolean isSchemaAware(); @Override Iterator<Attribute> iterator(); @Override List<Attribute> put( Attribute... attributes ); @Override Attribute put( String upId, byte[]... values ); @Override Attribute put( String upId, String... values ); @Override Attribute put( String upId, Value... values ); @Override boolean remove( String upId, byte[]... values ); @Override boolean remove( String upId, String... values ); @Override boolean remove( String upId, Value... values ); @Override void removeAttributes( String... attributes ); @Override void setDn( Dn dn ); @Override void setDn( String dn ); @Override int size(); Entry toClientEntry(); @Override void readExternal( ObjectInput in ); @Override void writeExternal( ObjectOutput out ); @Override Entry clone(); @Override Entry shallowClone(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); @Override String toString( String tabs );  }### Answer:
@Test public void testEqualsNull() throws Exception { assertFalse( clonedServerEntryA.equals( null ) ); assertFalse( clonedServerEntryA1.equals( null ) ); }
@Test public void testNotEqualDiffValue() throws Exception { assertFalse( clonedServerEntryA1.equals( clonedServerEntryC1 ) ); assertFalse( clonedServerEntryC1.equals( clonedServerEntryA1 ) ); }