Mocking a class means that you programmatically establish how is going to react, what is going to do and return. As an example, think on a Case record that needs an Account because the code that we want to test does validate against the related Account record