title: OCUnit test for protocols/callbacks/delegate in Objective-C
body: <p>Using OCUnit, is there a way to test delegate protocols?</p>
  
  <p>I'm trying this, which doesn't work.</p>
  
  <pre><code>-(void) testSomeObjDelegate {
    SomeObj obj = [[SomeObj alloc] initWithDelegate:self];
    [obj executeMethod];
  }
  -(void) someObjDelegateMethod {
    //test something here
  }
  </code></pre>
  
  <p>I'm going to try calling the <code>obj</code> method on a different thread and have the test sleep until the delegate is called.  It just seems like there should be an easier way to test this.</p>