validate command listener invocation