FinancialForce's ApexMocks Framework
ApexMocks is a mocking framework for the Force.com Apex language.
It derives it's inspiration from the well known Java mocking framework Mockito
Source code repo
The source code for this framework can be found here.
Refer to the source setup page for instructions on how to get this codebase setup in a Salesforce DX scratch org.