@Test
public void testPumpFromInputToOutput() throws Exception {
String str = "Tere Minu Uus vihik";
ByteArrayInputStream bais = new ByteArrayInputStream(str.getBytes());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PumpStreamHandler handler = new PumpStreamHandler(baos, System.err, bais);
ProcessExecutor exec = new ProcessExecutor("java", "-cp", "target/test-classes",
PrintInputToOutput.class.getName()).readOutput(true);
exec.streams(handler);