@Test
public void testUnreferenceCheckClosed() throws ClosedChannelException {

  CloseableReferenceCount clr = new CloseableReferenceCount();
  clr.reference();
  clr.reference();
  clr.unreferenceCheckClosed();
  assertEquals("Incorrect reference count", 1, clr.getReferenceCount());
}