@Test(timeout = 10000)
public void isOpen() throws IOException {

    PipeChannel channel = DefaultPipeChannel.open(tempFile());
    assertThat(channel.isOpen()).isTrue().as("channel is initially open");
    channel.close();
    assertThat(channel.isOpen()).isFalse();
}