Added support for mocking open generic types