ProcessResult { public boolean isSuccess() { return exitStatus == 0; } ProcessResult(int exitStatus, String output, String errors); boolean isSuccess(); int getExitStatus(); String getOutput(); String getErrors(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testSuccessFails() { ProcessResult processResult = new ProcessResult(1, "foo", "bar"); assertFalse(processResult.isSuccess()); }