@Test
public void collectingObjectsReturnsExpectedObject() {

    final JsonObject anotherJsonObject = JsonFactory.newObjectBuilder() //
            .set("Foo", "Bar") //
            .build();
    final JsonObject expectedObject = JsonFactory.newObjectBuilder() //
            .setAll(KNOWN_JSON_OBJECT) //
            .setAll(anotherJsonObject)//
            .build();
    final JsonObject actualObject =
            Stream.of(KNOWN_JSON_OBJECT, anotherJsonObject).collect(JsonCollectors.objectsToObject());
    DittoJsonAssertions.assertThat(actualObject).isEqualTo(expectedObject);
}