@Test public void canFormatListOfStrings() throws Exception { json.assemble(ListRepresentation.strings("hello", "world")); String expectedString = JsonHelper.createJsonFrom(Arrays.asList("hello", "world")); assertEquals(expectedString, stream.toString()); }