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