[#434] Enable mocking generic method