VersionSummary implements Serializable { @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( getClass() != obj.getClass() ) { return false; } VersionSummary other = (VersionSummary) obj; if ( id == null ) { if ( other.id != null ) { return false; } } else if ( !id.equals( other.id ) ) { return false; } return true; } VersionSummary( final Serializable id, final Serializable versionedFileId, final boolean aclOnlyChange,
      final Date date, final String author, final String message, final List<String> labels ); String getMessage(); Date getDate(); String getAuthor(); Serializable getId(); Serializable getVersionedFileId(); List<String> getLabels(); @Override int hashCode(); @Override boolean equals( Object obj ); boolean isAclOnlyChange(); @SuppressWarnings( "nls" ) @Override String toString();  }
@Test public void testEquals() { assertTrue( versionSummary.equals( versionSummary ) ); assertFalse( versionSummary.equals( null ) ); assertFalse( versionSummary.equals( new String() ) ); assertFalse( versionSummary.equals( new VersionSummary( "diffId", FILE_ID, ACL_CHANGE, DATE, AUTHOR, MESSAGE, LABELS ) ) ); assertTrue( versionSummary.equals( new VersionSummary( ID, FILE_ID, ACL_CHANGE, DATE, AUTHOR, MESSAGE, LABELS ) ) ); }