@Test
public void convertsSimpleGroovyBeanToJson() throws Exception {

    Class<?> aClass = parseGroovyClass("SimpleBean.groovy");
    GroovyObject groovyObject = (GroovyObject)aClass.newInstance();
    groovyObject.invokeMethod("setValue", new Object[]{"test serialize groovy bean"});
    JsonValue jsonValue = JsonGenerator.createJsonObject(groovyObject);
    assertionHelper.assertThatJsonHasAllFieldsFromObject(groovyObject, jsonValue);
}