Simplified test cases for stubbing class methods.