Messages { public static String format(Object value, String reason) { return quote(value) + " " + reason; }  static String format(Object value, String reason); static String format(Object value, String reason, String resolution); static String quote(Object value);  }
@Test void format_reason() { assertEquals("\"something\" why", Messages.format("something", "why")); }
@Test void format_reason_resolution() { assertEquals("\"something\" why, how", Messages.format("something", "why", "how")); }