@Test
public void convertsObjectWithPrimitiveFieldsAndTheirArraysToJson() throws Exception {

    BeanWithPrimitiveFields beanWithPrimitiveFields = createBeanWithPrimitiveFields();
    JsonValue jsonValue = JsonGenerator.createJsonObject(beanWithPrimitiveFields);
    assertionHelper.assertThatJsonHasAllFieldsFromObject(beanWithPrimitiveFields, jsonValue);
}