### Question:
Tag { @Override public boolean equals( Object other ) { if ( other instanceof Tag ) { Tag ot = ( Tag ) other; if ( description != null && ot.getDescription() != null ) { return revision == ot.getRevision() && description.equals( ot.getDescription() ); } else if ( description == null && ot.getDescription() == null ) { return revision == ot.getRevision(); } } return false; } Tag( long revision, String description );  Tag( long revision, String description, Date tagDate, Date revisionDate );  Tag( long revision, String description, long tagTime, long revisionTime ); long getRevision(); String getDescription(); Date getTagDate(); Date getRevisionDate(); @Override int hashCode(); @Override boolean equals( Object other ); @Override String toString();  }### Answer:
@Test public void testEqualsNull() throws Exception { assertFalse( tagA.equals( null ) ); assertFalse( tagANull.equals( null ) ); }
@Test public void testNotEqualDiffValue() throws Exception { assertFalse( tagA.equals( tagC ) ); assertFalse( tagC.equals( tagA ) ); assertFalse( tagA.equals( tagANull ) ); assertFalse( tagANull.equals( tagA ) ); assertFalse( tagD.equals( tagA ) ); }