Added support for mocking interfaces.