### Question:
SynchronousExecResult implements ExecResult { @Override public String getStdOutResult() { return stdOutResult; } SynchronousExecResult(final OutputStream stdOut, final int exitStatus); @Override boolean isFinished(); @Override boolean isSuccessful(); @Override String getStdOutResult(); @Override final int getExitStatus(); @Override final String toString();  }### Answer:
@Test public final void testGetOutput() { Assert.assertEquals( new SynchronousExecResult(getTestOutputStream(), 0).getStdOutResult(), "Success" ); }
@Test public final void testGetNullOutput() { Assert.assertNull(new SynchronousExecResult(null, 0).getStdOutResult()); }