Mock generator generates methods