@Test
public void connect() throws IOException {

    NPipeSocketAddress address = new NPipeSocketAddress(tempFile());
    NPipeSocketClientConnectionOperator clientConnectionOperator =
            new NPipeSocketClientConnectionOperator(new NPipeSocketAddress(tempFile()));
    SocketConfig socketConfig = SocketConfig.custom().setSoTimeout(42).build();
    TestManagedHttpClientConnection conn = new TestManagedHttpClientConnection();
    clientConnectionOperator.connect(conn, null, null, -1, socketConfig, null);
    NPipeSocket socket = (NPipeSocket) conn.getSocket();
    assertThat(socket.getRemoteSocketAddress().equals(address));
    assertThat(socket.getSoTimeout()).isEqualTo(42);
}