SteppingDispatcher steppingDispatcher = new SteppingDispatcher();
steppingDispatcher.start();
TestTarget testTarget = new TestTarget(12345);
testTarget.start();
SocketChannel channel = testTarget.getSocketChannel();
BlockingSocketChannel blockingChannel =
new BlockingSocketChannel(channel);
blockingChannel.configureBlocking(false);
TestChannelHandler testChannelHandler = new TestChannelHandler();
steppingDispatcher.registerChannel(blockingChannel, testChannelHandler);
// trigger selection by writing some bytes from testTarget
testTarget.write(testString.getBytes());