Element desktopSizeChangeSink = new MockSink("desktop_size", emptyBuf);
Element pixelsSink = new MockSink("pixels",
ByteBuffer.convertByteArraysToByteBuffers(new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,}));
Element copyRectSink = new MockSink("copy_rect", emptyBuf);
Pipeline pipeline = new PipelineImpl("test");
pipeline.addAndLink(source, handler);
pipeline.add(fburSink, bellSink, clipboardSink, desktopSizeChangeSink, pixelsSink, copyRectSink);
pipeline.link("handler >" + FRAME_BUFFER_UPDATE_REQUEST_ADAPTER_PAD, "fbur");
pipeline.link("handler >" + SERVER_BELL_ADAPTER_PAD, "bell");
pipeline.link("handler >" + SERVER_CLIPBOARD_ADAPTER_PAD, "clipboard");
pipeline.link("handler >" + PIXEL_ADAPTER_PAD, "pixels");
pipeline.runMainLoop("source", STDOUT, false, false);
}