@Test
public void close() throws IOException {

    NPipeSocket socket = new NPipeSocket();
    NPipeSocketImpl impl = socket.getImpl();
    socket.connect(createTestSocket());
    assertThat(socket.isClosed()).isFalse();
    assertThat(impl.isClosed()).isFalse();
    socket.close();
    assertThat(socket.isClosed()).isTrue();
    assertThat(impl.isClosed()).isTrue();
}