Subject: BDD Testing MessageService


If I have a Gherkin feature like:

Given object exists
When object name is set to a number
User is notified that names can only include alpha characters

How do I code the spec glue to check that code like the following occurs?
messageService.informUser("names can only include alpha characters");

Thanks!
Brian