final Pipe pipeFromDisco = Pipe.open();
final DiscoIOChannel ioChannel = new DiscoIOChannel(pipeFromDisco.source(), new NullByteChannel(),
new DiscoWorkerDecoder().setListener(listener));
final String okStr = "OK 4 \"ok\"\n";
pipeFromDisco.sink().write(ByteBuffer.wrap(okStr.getBytes()));
ioChannel.write(new WorkerAnnounceEncoder().set("1.0", 555));
inOrder.verify(listener).ok();
}