@Test
public void shutdownOutput() throws IOException {

    NPipeSocketImpl impl = new NPipeSocketImpl();
    connect(impl);
    impl.shutdownOutput();
    PipeChannelOutputStream outputStream = (PipeChannelOutputStream) impl.getOutputStream();
    assertThat(outputStream.isShutdown()).isFalse();
    impl.shutdownOutput();
    assertThat(outputStream.isShutdown()).isTrue();
}