return new IAnswer<Boolean>()
{
@SuppressWarnings("unchecked")
public Boolean answer() throws Throwable
{
ComponentEventHandler handler = (ComponentEventHandler) EasyMock
.getCurrentArguments()[2];
handler.handleResult(new Object[]
{ "foo", "bar" }, null, null);
return true;
}
};