An implementation of the context interface for testing.