Generate mock classes on the fly