LocalSocketAddress extends SocketAddress { public String getName() { return name; } LocalSocketAddress(String name); String getName(); @Override String toString();  }
@DisplayName("returns the configured name") @Test void name() { assertThat(new LocalSocketAddress("test-name").getName()).isEqualTo("test-name"); }