@Test
public void createsSimpleGroovyBean() throws Exception {

    Class<?> aClass = parseGroovyClass("SimpleBean.groovy");
    JsonValue jsonObject = createJsonObject("value", new StringValue("test restore groovy bean"));
    GroovyObject simpleBean = (GroovyObject)ObjectBuilder.createObject(aClass, jsonObject);
    assertEquals("test restore groovy bean", simpleBean.invokeMethod("getValue", new Object[0]));
}