Stubbed URIs didn't work under TeamCity. Using regexes instead of strings.