I do not think OCMockito supports this; when I do this using data instead of checking, I get a strange error when the code under test calls a method with argument **. If possible, you may need to change your method signature to not accept NSError ** (if you have control over this code).
source share