@Test
public void shouldWriteAJsonObjectAsAPrettyPrintedString() throws Exception {

    final JsonObject jsonObject = createObjectBuilder()
            .add("aProperty", "value a")
            .add("bProperty", "value b")
            .add("cProperty", "value c")
            .add("anObject", createObjectBuilder()
                    .add("innerProperty", "innerValue"))
            .build();
    final String json = JsonEnvelopeWriter.writeJsonObject(jsonObject);
    assertThat(json, is(EXPECTED_JSON));
}