Support for mock contexts