@UseDataProvider("collectionsOfComplexObjectsForConvertToJson")
@Test
public void convertsCollectionsOfComplexObjectsToJson(Collection<Object> objects) throws Exception {

    JsonValue jsonValue = JsonGenerator.createJsonArray(objects);
    assertTrue(jsonValue.isArray());
    assertionHelper.assertThatJsonArrayHasAllItemsFromCollection(objects, jsonValue);
}