Implement reflection-based command testing