@Before
	public void setUp() throws Exception {
		assertNotNull("Transport is set correctly", transport);
		events = new LinkedBlockingQueue<String>();
		outputs = new LinkedBlockingQueue<String>();
		args = new LinkedBlockingQueue<Object>();
		System.out.println("Connect with " + transport);
		node = Runtime.getRuntime().exec(
				new String[] { NODE, "./tests/io/socket/testutils/socketio.js",
						"" + getPort(), transport });
		proxy = new MutateProxy(getPort() + 1, getPort());
		proxy.start();

		stdoutThread = new Thread("stdoutThread") {
			@Override
			public void run() {
				BufferedReader reader = new BufferedReader(
						new InputStreamReader(node.getInputStream()));
				String line;
				try {
					while ((line = reader.readLine()) != null) {
						if (line.startsWith("__:")) {
							System.out.println("Out: " + line);
							outputs.add(line.substring("__:".length()));
						} else
							System.out.println("Node: " + line);
					}
				} catch (IOException e) {
					if (!interrupted()) {
						e.printStackTrace();
						System.err.println("Node read error");
					}
				}
				System.err.println("Node output end");
			}
		};
		stderrThread = new Thread("stderrThread") {
			@Override
			public void run() {
				BufferedReader reader = new BufferedReader(
						new InputStreamReader(node.getErrorStream()));
				try {
					String line;
					while ((line = reader.readLine()) != null) {
						System.err.println("Node: " + line);
					}
				} catch (IOException e) {
					if (!interrupted()) {
						e.printStackTrace();
						System.err.println("Node read error");
					}
				}
				System.err.println("Node output end");
			};
		};
		stderrThread.start();
		stdoutThread.start();
		Runtime.getRuntime().addShutdownHook(new Thread() {
			@Override
			public void run() {
				try {
					node.destroy();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		assertEquals("OK", takeLine());
	}
Sets up the test. Starts the node testserver on a randomly choosed port,
starts backgroundthreads for processing stdin/stdout. Adds shutdown-hook
for clean kill of the node server.

@throws Exception
            the exception
tests/io/socket/AbstractTestSocketIO.java