### Question:
Snippets { public static String source(final String template, final Object... args) { return source(snippet(template, args)); } private  Snippets(); static String source(final String template, final Object... args); static String source(final Object... snippets); static Snippet list(final Stream<?> items, final Object separator); static Snippet id(final Object object); static Snippet id(final Object object, final Object... aliases);  }### Answer:
@Test void testIndentBraceBlocks() { assertThat(source("{\nuno\n}\ndue")) .as("indented block") .isEqualTo("{\n uno\n}\ndue"); assertThat(source("{ {\nuno\n} }\ndue")) .as("inline block") .isEqualTo("{ {\n uno\n} }\ndue"); }
@Test void testIgnoreLeadingSpaces() { assertThat(source(" {\n\tuno\n due\n }")) .as("single") .isEqualTo("{\n uno\n due\n}"); }
@Test void testCollapseSpaces() { assertThat(source(" text")) .as("leading") .isEqualTo("text"); assertThat(source("uno due")) .as("inside") .isEqualTo("uno due"); }
@Test void testCollapseNewlines() { assertThat(source("uno\ndue")) .as("single") .isEqualTo("uno\ndue"); assertThat(source("uno\n\n\n\ndue")) .as("multiple") .isEqualTo("uno\n\ndue"); }