1. A computer-implemented method for automating a test environment, the method 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; and automatically modifying, via the computing device, the class-under-test at runtime.