@UseDataProvider("complexObjectsForConvertToJson")
@Test
public void convertsComplexObjectToJson(Object object) throws Exception {

    JsonValue jsonValue = JsonGenerator.createJsonObject(object);
    assertTrue(jsonValue.isObject());
    assertionHelper.assertThatJsonHasAllFieldsFromObject(object, jsonValue);
}