@Test
public void connectionUpgradeUnsupported() {

    NPipeSocketClientConnectionOperator clientConnectionOperator =
            new NPipeSocketClientConnectionOperator(new NPipeSocketAddress(tempFile()));
    assertThatExceptionOfType(IOException.class).
            isThrownBy(() -> clientConnectionOperator.upgrade(new TestManagedHttpClientConnection(),
                    new HttpHost("localhost"), new HttpClientContext()));
}