### Question:
InProcessSocketAddress extends SocketAddress { @Override public int hashCode() { return name.hashCode(); } InProcessSocketAddress(String name); String getName(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void hash() { assertThat(new InProcessSocketAddress("a").hashCode()) .isEqualTo(new InProcessSocketAddress(new String("a")).hashCode()); }