ReportCacheKey extends DataCacheKey { public int hashCode() { int result = super.hashCode(); result = 31 * result + ( sessionId != null ? sessionId.hashCode() : 0 ); return result; } ReportCacheKey( final String sessionId, final Map<String, Object> parameter ); String getSessionId(); boolean equals( final Object o ); int hashCode();  }
@Test public void testHashCode() throws Exception { assertEquals( 0, rck.hashCode() ); rck.addParameter( "param", "value" ); assertEquals( 1403851013, rck.hashCode() ); }