@Test
public void testSetClosed() throws ClosedChannelException {

  CloseableReferenceCount clr = new CloseableReferenceCount();
  assertTrue("Reference count should be open", clr.isOpen());
  clr.setClosed();
  assertFalse("Reference count should be closed", clr.isOpen());
}