VoidValue { @Override public int hashCode() { return 1; } VoidValue(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final VoidValue SINGLETON; }
@Test public void testHashCode() throws Exception { Assert.assertEquals(1, new VoidValue().hashCode()); }