@Test
public void bind() throws IOException {

    NPipeSocket socket = new NPipeSocket();
    assertThat(socket.isBound()).isFalse();
    assertThatExceptionOfType(UnsupportedSocketOperationException.class)
            .isThrownBy(() -> socket.bind(null));
    assertThat(socket.isBound()).isFalse();
}