Stubbing out classes and interfaces