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