private ComponentPageElementResources mockResources()
{
ComponentPageElementResources resources = newMock(ComponentPageElementResources.class);
expect(resources.invoke(EasyMock.isA(String.class), EasyMock.isA(Invokable.class))).andAnswer(new IAnswer<Object>()
{
public Object answer() throws Throwable
{
Invokable inv = (Invokable) EasyMock.getCurrentArguments()[1];