assertEquals(1, count);
Set<SelectionKey> selectedKeys = selector.selectedKeys();
assertEquals(1, selectedKeys.size());
SelectionKey key = selectedKeys.iterator().next();
assertEquals(ssc.keyFor(selector), key);
assertEquals(SelectionKey.OP_ACCEPT, key.readyOps());
// select again, it should return 0
count = selectOnce(type, timeout);
assertEquals(0,count);
// but selectedKeys remains the same as previous
assertSame(selectedKeys, selector.selectedKeys());