@Test
public void convertsObjectWithClassFieldToJson() throws Exception {

    BeanWithClassField beanWithClassField = createBeanWithClassField();
    JsonValue jsonValue = JsonGenerator.createJsonObject(beanWithClassField);
    assertEquals(BeanWithClassField.class.getName(), jsonValue.getElement("klass").getStringValue());
}