1. A computer program product residing on a non-transitory computer readable storage medium having a plurality of instructions for automating a test environment stored thereon, which, when executed by a processor, cause the processor to perform operations comprising: providing at one or more computing devices, a superclass and a class-under-test, the superclass and the class-under-test having an inheritance chain therebetween; inserting, via the computing device, an intermediate mock class between the superclass and the class-under-test, including intercepting calls to the class-under-test and redirecting them to the mock class; and automatically modifying, via the computing device, the class-under-test at runtime.