This can be frustrating at first time, but this method is for C structures, for comparing NSString with another one just use:
NSString* mystring = [NSString stringWithFormat:@"%@", [dict objectForKey:@"mystring"]]; XCTAssertEqualObjects(mystring, @"myanotherstring");