LocalTimeConverter implements PropertyConverter<LocalTime> { @Override public int hashCode(){ return getClass().hashCode(); }  @Override LocalTime convert(String value, ConversionContext ctx); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void equalsAndHashcode() throws Exception { LocalTimeConverter conv1 = new LocalTimeConverter(); LocalTimeConverter conv2 = new LocalTimeConverter(); assertThat(conv2).isEqualTo(conv1); assertThat(conv2.hashCode()).isEqualTo(conv1.hashCode()); assertThat(conv2).isNotEqualTo(new LongConverter()); assertThat(conv2).isNotEqualTo(null); }
@Test public void testHashCode() { LocalTimeConverter instance = new LocalTimeConverter(); assertThat(instance.hashCode()).isEqualTo(LocalTimeConverter.class.hashCode()); }