ReportCacheKey extends DataCacheKey { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } if ( !super.equals( o ) ) { return false; } final ReportCacheKey that = (ReportCacheKey) o; if ( ObjectUtilities.equal( sessionId, that.sessionId ) == false ) { return false; } return true; } ReportCacheKey( final String sessionId, final Map<String, Object> parameter ); String getSessionId(); boolean equals( final Object o ); int hashCode();  }
@Test public void testEquals() throws Exception { assertTrue( rck.equals( rck ) ); assertFalse( rck.equals( "" ) ); assertTrue( rck.equals( new ReportCacheKey( "", parameter ) ) ); assertFalse( rck.equals( new ReportCacheKey( "sessionId", parameter ) ) ); }