isCalled = foo.getClass().getMethod( "isCalled", new Class[0] );
return (Boolean) isCalled.invoke( foo, new Object[0] );
}
catch ( IllegalAccessException e )
{
throw new NestedRuntimeException( e );
}
catch ( InvocationTargetException e )
{
throw new NestedRuntimeException( e );
}
catch ( NoSuchMethodException e )
{
throw new NestedRuntimeException( e );
}
}