property.setVarName( VARNAME );
property.setParent( createDomain("java", null, 0));
String value = new String("aValue");
// Create a modelHelper, register it in a Transformation and in the context.
ModelHelper model = setUpJavaModel("java");
// Create an object from the model.
MockBean parent = (MockBean)model.createInstance( MockBean.class.getName());
parent.setName(value);
// Try to get the value
Object res = property.getPropertyValue( parent, context);
assertEquals( "property value", value, res );