### Question:
Args { @Override public String toString() { return String.join(" ", args); } Args(String cmd); void removeOptions(String... options); void removeFlags(String... flags); void addOption(String option, String value); boolean contains(String name); String[] values(); @Override String toString();  }### Answer:
@Test public void shouldFormatAsString() throws Exception { Args args = new Args("-e endpoint -c config"); assertEquals("-e endpoint -c config", args.toString()); }