title: OCMock - Mocking class method?
body: <p>I'm trying to mock a class method, and it doesn't seem to be working as expected. any thoughts?</p>
  
  <pre><code>@implementation ApplicationVersionManager
  
  + (NSString *)appVersion {
     return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
  }
  
  @end
  </code></pre>
  
  <p>Test</p>
  
  <pre><code>- (void)testSomething {
     OCMStub([ApplicationVersionManager appVersion]).andReturn(@"3.0");
     NSString *version = [ApplicationVersionManager appVersion];
     // version is nil. Why?
  }
  </code></pre>