title: OCMock testing the address of a struct
body: <p>I have some code I want to test that is passing around the address of a struct:</p>
  
  <pre><code>MyObject myObject = ...;
  MyRecord record = [someObject record];  //record is a @property
  [myObject add:&amp;record];
  </code></pre>
  
  <p>I've mocked <code>someObject</code> to return a record:</p>
  
  <pre><code>MyRecord record = ...;
  [[[_mockSomeObject stub] andReturnValue:OCMOCK_VALUE(record)] record];
  [[_mockMyObject expect] add:&amp;record];
  </code></pre>
  
  <p>Unfortunately, OCMock fails (I believe) because pulling the struct out of the NSValue wrapper will always return a different address.</p>
  
  <p>Is there a way to get an expectation to work correctly if one of the parameters is an address of a struct?</p>