I'm developing the web Java application and come across the following issue:
I'm using jUnit 4.5.
Suppose that I have a method which aggregates data from a database for the rendering their to a markup. Is it make a sense to testing an sql query in the way that I simple write a series of sql-queries and compare expected and real results?