@Test
public class JsonSerializerTest {
private final JsonParser jsonParser = new JsonParser();
public void shouldDoSerializeParseRoundTrip() {
JsonObject original = object().put("a", object().get()).put("b", "test").putArray("c", "1","2","3").get();
String json = JsonSerializer.serialize(original, true);
String json2 = JsonSerializer.serialize(original, false);
// there should be a difference (pretty printing)
AssertJUnit.assertNotSame(json, json2);
// if we parse it back and reprint it they should be identical to each other and the original