private static class DatagramChannelWithTimeoutsEmul extends DatagramChannelWithTimeouts {
protected DatagramChannelWithTimeoutsEmul() throws IOException {
super();
selector = new SelectorEmul();
DatagramChannelEmul ce = (DatagramChannelEmul) DatagramChannelEmul.open();
ce.configureBlocking(false);
ce.setBytesToRead(ByteBuffer.wrap("test".getBytes()));
channel = ce;
channelKey = channel.register(selector, SelectionKey.OP_READ);
}