Wouldn't be ok to just assert it returns 3 records rather than relying on the generated SQL?