}
protected void setUp() throws Exception {
super.setUp();
GroovyClassLoader cl = new GroovyClassLoader(getClass().getClassLoader());
implClass1 = cl.parseClass(SCRIPT);
implClass2 = cl.parseClass(SCRIPT2);
scopeContainer = createMock(ScopeContainer.class);
expect(scopeContainer.getInstance(isA(AtomicComponent.class))).andStubAnswer(new IAnswer() {
public Object answer() throws Throwable {
return ((AtomicComponent) getCurrentArguments()[0]).createInstance();