assertInstance(InvocationContext.class, context.getProducedItems().get(0));
}
public void testResolveContextInScript() throws Exception {
Class<? extends GroovyScriptCommand> clazz = loader.parseClass("return context");
TestInvocationContext context = new TestInvocationContext();
context.execute2(clazz);
assertEquals(1, context.getProducedItems().size());
assertInstance(InvocationContext.class, context.getProducedItems().get(0));
}