Element sink = new MockSink("sink");
Element mainSink = new MockSink("mainSink", ByteBuffer.convertByteArraysToByteBuffers(new byte[] {1, 2, 3}));
Pipeline pipeline = new PipelineImpl("test");
pipeline.add(source, atachUserConfirm, sink, mainSink);
pipeline.link("source", "attach_user_confirm", "mainSink");
pipeline.link("attach_user_confirm >" + OTOUT, "sink");
pipeline.runMainLoop("source", STDOUT, false, false);
if (rdpState.serverUserChannelId != 1004)
System.err.println("Incorrect user channel ID. Expected value: 1004, actual value: " + rdpState.serverUserChannelId + ".");