@Test
public void testIfTrue2() throws NoSuchMethodException, SecurityException,
IllegalAccessException, IllegalArgumentException,
InvocationTargetException, InstantiationException {
Class stClass = new ClassBuilder("FooObject_testIfTrue2").method(
"foo: bar |t| t := 2. bar ifTrue: [t := 1]. ^t").build();
Object fooObject = stClass.newInstance();
Method method = fooObject.getClass().getMethod("foo_", Object.class);
assertEquals(Integer.valueOf(1), method.invoke(fooObject, true));