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