add doc for mocking class method