### Question:
ShellOutput { @Override public String toString () { StringBuilder stringBuilder = new StringBuilder(); if (exitCode == 0) { stringBuilder.append(stdOut); } else { stringBuilder.append(exitCode).append(": ").append(Strings.isNotBlank(stdErr) ? stdErr : stdOut); } String output = stringBuilder.toString(); if (output.length() > MAXIMUM_OUTPUT_LENGTH) { output = output.substring(0, MAXIMUM_OUTPUT_LENGTH - 3) + "..."; } return output; } ShellOutput(int exitCode, String stdOut, String stdErr);  ShellOutput(int exitCode, String stdOut); static ShellOutputBuilder builder(); int getExitCode(); void setExitCode(int exitCode); String getStdOut(); void setStdOut(String stdOut); String getStdErr(); void setStdErr(String stdErr); @Override String toString(); static final ShellOutput EMPTY_SHELL_OUTPUT; }### Answer:
@Test public void toStringTest () { assertEquals(expected, shellOutput.toString()); }