public void testReadWriteInstVarInNameBlock() throws NoSuchMethodException,
SecurityException, IllegalAccessException,
IllegalArgumentException, InvocationTargetException,
InstantiationException {
Class stClass = new ClassBuilder(
"FooObject_testReadWriteInstVarInNameBlock").method(
"foo: bar\n" + "|bl|\n" + "bl := bar nameBlock.\n"
+ "bar setNameInBlock: 'Fromage'.\n" + "^bl value")
.build();
Class barClass = new ClassBuilder(
"BarObject_testReadWriteInstVarInNameBlock")
.method("setNameInBlock: anObject\n"
+ " [name := anObject] value")
.method("nameBlock\n" + " ^[name]").instVar("name")
.build();