Mockito matcher and array of primitives I would try any(byte[].class) Try this: AdditionalMatchers.aryEq(array);