@Ignore
@Test
public void testNewChannelBlockingCloseSemantics() throws IOException,
    InterruptedException {

  final ReadableByteChannel ch = Channels.newChannel(System.in);
  final CountDownLatch done = new CountDownLatch(1);
  new Thread() {
    public void run() {
      ByteBuffer buf = ByteBuffer.allocate(10);
      try {
        ch.read(buf);
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } finally {
        // this operation blocks!
        done.countDown();
      }
    }
  }.start();
  Clock.sleep(250); // get read got blocked
  ch.close();
  System.in.close();
  assertTrue("Timeout becuase channel read blocked",
      done.await(5000, TimeUnit.MILLISECONDS));
}