@Test
public void testJavaVersionLogInfoAndOutputFuture() throws Exception {
// Just expect no errors - don't check the log file itself
ProcessResult result = new ProcessExecutor().command("java", "-version").redirectOutput(Slf4jStream.of("testJavaVersionLogInfoAndOutputFuture").asInfo()).readOutput(true).start().getFuture().get();
String str = result.outputUTF8();
Assert.assertFalse(StringUtils.isEmpty(str));
}
@Test
public void testJavaVersionNoStreams() throws Exception {