Using mock naming contexts for testing