@Test
public void execProcessWithErrors() {

    List<String> commandLine = Lists.newArrayList("java", "-wrongArgument");
    int result = ProcessUtil.execProcess(".", commandLine);
    assertThat(result, is(1));
}