} catch (IOException e) {
}
}
}.start();
RemoteLauncher launcher = new RemoteLauncher(StreamTaskListener.NULL, ch, true);
String str="";
for (int i=0; i<256; i++)
str += "oxox";
for (int i=0; i<1000; i++) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
launcher.launch().cmds("echo",str).stdout(baos).join();
assertEquals(str, baos.toString().trim());
}
ch.close();
}