### Question:
CircusTrainHelp { @Override public String toString() { Iterable<String> errorMessages = FluentIterable.from(errors).transform(OBJECT_ERROR_TO_TABBED_MESSAGE); StringBuilder help = new StringBuilder(500) .append("Usage: circus-train.sh --config=<config_file>[,<config_file>,...]") .append(System.lineSeparator()) .append("Errors found in the provided configuration file:") .append(System.lineSeparator()) .append(Joiner.on(System.lineSeparator()).join(errorMessages)) .append(System.lineSeparator()) .append("Configuration file help:") .append(System.lineSeparator()) .append(TAB) .append("For more information and help please refer to ") .append("https: return help.toString(); } CircusTrainHelp(List<ObjectError> errors); @Override String toString();  }### Answer:
@Test public void typical() { String expectedHelpMessage = "Usage: circus-train.sh --config=<config_file>[,<config_file>,...]\n" + "Errors found in the provided configuration file:\n" + "\tError message 1\n" + "\tError message 2\n" + "Configuration file help:\n" + "\tFor more information and help please refer to https: List<ObjectError> errors = Arrays.asList(new ObjectError("object.1", "Error message 1"), new ObjectError("object.2", "Error message 2")); String help = new CircusTrainHelp(errors).toString(); assertThat(help, is(expectedHelpMessage)); }