* @version $Revision: 21496 $
*/
public class GetPropertyTest extends TestSupport {
public void testProperty() throws Exception {
GroovyObject object = compile("src/test/org/codehaus/groovy/classgen/MyBean.groovy");
System.out.println("Got object: " + object);
Object value = object.getProperty("name");
assertEquals("name property", "James", value);
object.setProperty("name", "Bob");
assertEquals("name property", "Bob", object.getProperty("name"));
}